Displaying 1 result from an estimated 1 matches for "data_cfa".
Did you mean:
data_cf
2018 Mar 16
0
How to save the values of the factors of a CFA analysis in my dataset?
...ng
data_factor <- predict(fit)
But I need these 5 factors (as columns, as variables), added to my original
dataset. How can I achieve this?
I tried cbind, but got an error:
factorERS <- select(dataset, JOBMOTIVATIE_extsoc1 +
JOBMOTIVATIE_extsoc2 + JOBMOTIVATIE_extsoc3)
data_CFA <- cbind(dataset, fit$scores)
Error in fit$scores : $ operator not defined for this S4 class
Thanks for helping me out!
[[alternative HTML version deleted]]