R multilevel
multilevel is a package for multilevel modeling.
Contents
Installation
Install the multilevel package.
install.packages('multilevel')
Usage
To calculate the Sobel test statistic, try:
sorel(data$X, data$M, data$Y)
This displays:
- the component models, including the estimated coefficients and intercepts
- the indirect effect
- the pooled standard error
- the calculated Z statistic
