wprifm | R Documentation |
Within-Person Random Intercept Factor Model
wprifm(data, scale = FALSE, save_model = FALSE)
data |
Data.frame containing the manifest variables. |
scale |
Should the data be scaled? Default = FALSE |
save_model |
Should the temporary lavaan model syntax be saved. Default = FALSE |
This function performs the within-person random intercept factor model described in Davison, Kim, and Close (2009). For information about this model, please see this reference. This function returns an object of lavaan
class and thus any generics defined for lavaan
will work on this object. This function provides a simple wrapper for lavaan
.
an object of class lavaan
Davison, M., Kim, S.-K., Close, C. (2009). Factor analytic modeling of within person variation in score profiles. Multivariate Behavioral Research, 44(5), 668 - 687. DOI: 10.1080/00273170903187665
data <- HolzingerSwineford1939[,7:ncol(HolzingerSwineford1939)] wprifm(data, scale = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.