Creates and adds factor scores to the data frame that was used to estimate the CFA.
1 2 3 4 5 6 7 8 |
data |
The data frame that was originally passed to |
object |
An object of class |
rename_vars |
A vector that represents new names for the factor scores. |
id |
Variable that identifies each individual case in the data frame. Only necessary if the data frame is in the long format.
or |
to_wide |
A logical value indicating whether the multigroup factor scores should be passed to long or to a wide format data frame. |
group |
A vector representing the grouping variable in the long format that was passed to data. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.