process_twin_data | R Documentation |
Process twin data into MxData objects to add to MxModel. The function accepts raw data and covariance matrices.
process_twin_data(data, selvars, data_type = "raw", zyg = character(0))
data |
|
data_type |
'raw', 'cov' or 'cor', as required by |
zyg |
factor used to split the data frame when data_type = 'raw' |
When data_type = 'raw' (default), the data must be a data frame or matrix
with raw data that will be split upon factor zyg
and passed to
mxData
. When data_type = 'cov' or 'cor', the data must be a (named)
list of arguments passed to mxData
, including observed
-
covariation or correlation matrix, numObs
- number of observations,
means
- vector of means. The type
argument is not required as
it is added from data_type
. Refer to ?mxData
for details on
mxData
arguments.
A list of MxData
objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.