View source: R/f_conveneince_changedata.R
changedata | R Documentation |
This function can be used to change the data in a psychonetrics object.
changedata(x, data, covs, nobs, means, groups, missing = "listwise")
x |
A |
data |
A data frame encoding the data used in the analysis. Can be missing if |
covs |
A sample variance–covariance matrix, or a list/array of such matrices for multiple groups. IMPORTANT NOTE: psychonetrics expects the maximum likelihood (ML) covariance matrix, which is NOT obtained from |
nobs |
The number of observations used in |
means |
A vector of sample means, or a list/matrix containing such vectors for multiple groups. |
groups |
An optional string indicating the name of the group variable in |
missing |
How should missingness be handled in computing the sample covariances and number of observations when |
An object of the class psychonetrics (psychonetrics-class)
Sacha Epskamp
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.