createParameterVector {blatent} | R Documentation |
Creates named numeric vector with parameter names for analysis specified by modelText
Description
Creates named numeric vector with parameter names for analysis specified by modelText.
Usage
createParameterVector(modelText)
Arguments
modelText |
A character string that contains the specifications for the model to be run. See |
Examples
# Generating parameters for data using Q-matrix structure from data example in Chapter 9 of
# Rupp, Templin, & Henson (2010).
RTHCh9ModelSyntax = "
item1 ~ A1
item2 ~ A2
item3 ~ A3
item4 ~ A1 + A2 + A1:A2
item5 ~ A1 + A3 + A1:A3
item6 ~ A2 + A3 + A2:A3
item7 ~ A1 + A2 + A3 + A1:A2 + A1:A3 + A2:A3 + A1:A2:A3
# Latent Variable Specifications:
A1 A2 A3 <- latent(unit='rows',distribution='bernoulli',structure='univariate',type='ordinal')
# Observed Variable Specifications:
item1-item7 <- observed(distribution = 'bernoulli', link = 'probit')
"
paramVals = createParameterVector(modelText = RTHCh9ModelSyntax)
[Package blatent version 0.1.2 Index]