View source: R/emxMatrixBuilders.R
emxThresholds | R Documentation |
This function creates a threshold matrix as an MxMatrix object.
emxThresholds(data, ordinalCols, deviation=TRUE)
data |
The data frame or matrix for which thresholds should be created. |
ordinalCols |
optional character vector. The names of the ordinal variables in the data. |
deviation |
logical. Return the list of OpenMx objects needed for the deviation form of the threholds (default) or just the raw thresholds matrix |
An MxMatrix giving the thresholds.
emxFactorModel, emxGrowthModel
# Example require(EasyMx) data(jointdata) jointdata[, c(2, 4, 5)] <- mxFactor(jointdata[,c(2, 4, 5)], levels=sapply(jointdata[,c(2, 4, 5)], function(x){sort(unique(x))})) emxThresholds(jointdata, c(FALSE, TRUE, FALSE, TRUE, TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.