Two-sided p-value for a Wald test of beta = 0 using the t-distribution
with n - 2 degrees of freedom.
Usage
waldTestPval(beta, se, n)
Arguments
- beta
Numeric vector of effect-size estimates.
- se
Numeric vector of standard errors (same length as beta).
- n
Integer sample size (used for the degrees of freedom).
Value
Numeric vector of two-sided p-values.
Examples
waldTestPval(beta = 0.3, se = 0.1, n = 1000)
#> [1] 0.002766844