This function calculates a p-value from a t-value
normal_approximation(statistic)
Arguments
- statistic
The estimated statistic for a model parameter
Examples
library(lme4)
#> Loading required package: Matrix
mod3a <- lmer(Reaction ~ 1 + Days + (1|Subject), data = sleepstudy)
normal_approximation(2.02)
#> [1] 0.04338339