Description Usage Arguments Details Value Author(s) References See Also Examples
Calculates the Wald test statistic for a single parameter.
1 | wald_test(thetahat, varhat, null = 0)
|
thetahat |
Numeric. Parameter estimate ≤ft( \hat{θ} \right). |
varhat |
Numeric.
Estimated variance of |
null |
Numeric.
Hypothesized value of |
The Wald test statistic for a single parameter is calculated as follows:
W = \frac{ ≤ft( \hat{θ} - θ_0 \right)^2 } { \widehat{\mathrm{Var}} ≤ft( \hat{θ} \right) }
The associated p
-value
from the chi-square
distribution is calculated
using pchisq()
with df = 1
.
Returns a vector with the following elements:
Wald test statistic.
p-value.
Ivan Jacob Agaloos Pesigan
Other Wald test functions:
sqrt_wald_test()
1 2 3 4 5 6 7 | thetahat <- 0.860
sehat <- 0.409
varhat <- sehat^2
wald_test(
thetahat = thetahat,
varhat = varhat
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.