Description Usage Arguments Details Value Author(s) References See Also Examples
Calculates the square root of the Wald test statistic for a single parameter.
1 | sqrt_wald_test(thetahat, sehat, null = 0, dist = "z", df)
|
thetahat |
Numeric. Parameter estimate ≤ft( \hat{θ} \right). |
sehat |
Numeric.
Estimated standard error of |
null |
Numeric.
Hypothesized value of |
dist |
Character string.
|
df |
Numeric.
Degrees of freedom (df) if |
The square root of the Wald test statistic for a single parameter is calculated as follows:
√{W} = \frac{ \hat{θ} - θ_0 } { \widehat{\mathrm{se}} ≤ft( \hat{θ} \right) } .
The associated p
-value
from the z
or t
distribution is calculated
using pnorm()
or pt()
.
Returns a vector with the following elements:
Square root of Wald test statistic.
p-value.
Ivan Jacob Agaloos Pesigan
Other Wald test functions:
wald_test()
1 2 3 4 5 6 7 8 9 10 11 12 | thetahat <- 0.860
sehat <- 0.409
sqrt_wald_test(
thetahat = thetahat,
sehat = sehat
)
sqrt_wald_test(
thetahat = thetahat,
sehat = sehat,
dist = "t",
df = 1000
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.