View source: R/factorAnalyzeR.R
Factor Analysis Functions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | factorAnalyzeR(
modelFactorsList,
factorIndicatorsList,
varSpec = NULL,
factorVarSpec = "free",
indVarSpec = "@1",
categoricalInds = NULL,
na.string = "-9999",
mplusDataFilePath,
mplusDataFileColumnNames,
templateName = "MPLUStemplate",
mplusOutputDirectory = getwd(),
run = FALSE,
starts = "50 20",
iterations = "10",
cores = 8,
monitor = "off",
outputTechOptions = "TECH1 TECH3 TECH8",
integration = "montecarlo",
estimator = "mlr",
extraUseVars = NULL,
variableExtras = NULL,
analysisExtras = NULL,
type = NULL
)
|
modelFactorsList |
List of vectors of factors for each model List elements: Vectors corresponding to models; Vector elements: Each is a string with one factor name for that model (use addModelContent function; see documentation using ?TabulationAutomation::addModelContent) |
factorIndicatorsList |
List of vectors of factor indicators List elements = vectors corresponding to models; Vector elements = each factor's indicators smushed into one string ***(indicators separated by spaces or dashes for consecutive naming, e.g. "a1-a4 b1 b4") |
varSpec |
Specify list of lists of factor and indicator variance specifications Should have names of list = models; names of sublists = factors with variance specifications (e.g. f1@1); elements of sublists = vectors of indicators with specifications (e.g. c1*) |
factorVarSpec |
Specify "free" if factors "free" to have different variances or "standardized" to fix at one (can also specify a string to fix each factor according to custom MPlus syntax (e.g. "@0")) |
indVarSpec |
Variances for factor indicators. Specify "free" for syntax like f BY a*. Or can specify custom string. (e.g. @1) |
categoricalInds |
Vectors (elements = models): NULL if all indicators continuous for that model If model has ANY categorical indicators, string of categorical indicators' names in dataset ***Indicators separated by spaces or dashes for consecutive naming, e.g., for 2 models; one all continuous, one with categorical a1, a2, a3, b1, b4: c(NULL, "a1-a3 b1 b4") |
na.string |
What value indicates missing variables in the data MPlus will analyze? (Default "-9999") |
mplusDataFilePath |
Full file path for the data MPlus will analyze? |
templateName |
What should the template created by this function be called? (specify without ".txt" file extension) |
mplusOutputDirectory |
Where should the MPlus syntax template and Mplus .inp and .out files go? |
run |
TRUE if you want to run the syntax created by the template |
starts |
String with number of initial stage starts and final stage optimizations, e.g., "100 20" |
iterations |
Initial stage iterations, e.g. "10" |
cores |
Number of logical processors to use (MandelBot = 64) |
monitor |
"on" or "off" for MPlus monitor option |
outputTechOptions |
e.g. 'TECH1 TECH3 TECH4 TECH8 TECH10 residual standardized cinterval patterns' |
integration |
e.g. 'INTEGRATION = montecarlo' |
extraUseVars |
For instance, if you wanted to include more than just factor indicators, like subpopulation identifiers |
variableExtras |
e.g. 'cluster is PSU; stratification is STRATUM; weight is WEIGHT;' |
analysisExtras |
Any extra syntax for the ANALYSIS command |
type |
e.g. "complex;", "mixture;", etc. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.