Extract the test statistic from a hypothesis test

test_stat(x, ...)

# S3 method for class 'hypothesis_test'
test_stat(x, ...)

Arguments

x

a hypothesis test object

...

additional arguments to pass into the method

Value

Numeric test statistic.

Examples

w <- wald_test(estimate = 2.5, se = 0.8)
test_stat(w)
#> [1] 9.765625