R multilevel
multilevel is a library of functions for working with multilevel data.
Contents
Installation
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