View source: R/nullModellavaan.R
nullModellavaan | R Documentation |
This simple little thing is just here to automate creation of 'null' models that separate the within and between variance on scores for all variables in a set, without then going and trying to say anything about how level1 or level2 variance is predicted by anything.
nullModellavaan(pmRatingData[3:ncol(pmRatingData)]) #if first two variables are 'p' and 'm' and all the remaining variables are variable ratings
varset |
the set of variables you want to include in the null model |
the text you need to put into model
for lavaan::sem(model, ...)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.