simParamPath(..., exo = FALSE)
Details
TRUE
if users wish to specify both exogenous and endogenous indicators.SimParam
object that represents the path analysis model free parameters. This will be used for building SimModel
later.BE
for regression coefficient matrix (need to be amatrix
).PS
for residual covariance matrix (need to be a symmetricmatrix
).AL
for indicator intercept (need to be avector
).GA
for regression coefficient matrix from exogenous variable to endogenous variable (need to be amatrix
).PH
for exogenous indicator covariance (need to be a symmetricmatrix
).KA
orMK
for exogenous variable mean (need to be avector
).exo=FALSE
are
exo=TRUE
are
SimParam
for the free parameters object details.simParamCFA
to specify CFA model and usesimParamSEM
to specify full structural equation modeling.path <- matrix(0, 4, 4)
path[3, 1:2] <- NA
path[4, 3] <- NA
model <- simParamPath(BE=path)
exoPath <- matrix(NA, 3, 2)
model2 <- simParamPath(GA=exoPath, exo=TRUE)
Run the code above in your browser using DataLab