Description Usage Arguments Value Examples
This function takes the df of items and executes psyscores::congeneric(). It then takes the lavaan model and applies the procedure outlined by McNeish and Wolf (2020), following from Skrondal & Laake (2001)
1 | scoreit(itemdf, datadf, scorerole = "NULL")
|
itemdf |
input data frame of the items used when executing psyscores::congeneric() |
datadf |
target data frame to which the computed vector of factor scores should be appended |
scorerole |
input character for which analytic role the factor score will play. When "predictor" is specified, regression/MAP scores with Croon (2002) correction are computed. When "outcome" is specified, Bartlett scores are computed. No default to prevent accidental specification. |
data frame consisting of data frame specified in datadf with the additional column of factor scores
1 | dvn = dyadVarNames(dat, xvar="X", sep = ".",distinguish1 = "1", distinguish2 = "2")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.