nullModellavaan: Make a 'Null' model for MSEM analysis in lavaan

View source: R/nullModellavaan.R

nullModellavaanR Documentation

Make a 'Null' model for MSEM analysis in lavaan

Description

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.

Usage

nullModellavaan(pmRatingData[3:ncol(pmRatingData)]) #if first two variables are 'p' and 'm' and all the remaining variables are variable ratings

Arguments

varset

the set of variables you want to include in the null model

Value

the text you need to put into model for lavaan::sem(model, ...)


funfield-lab/fancyr documentation built on Nov. 21, 2023, 2:42 p.m.