simParamPath(..., exo = FALSE)DetailsTRUE 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.BEfor regression coefficient matrix (need to be amatrix).PSfor residual covariance matrix (need to be a symmetricmatrix).ALfor indicator intercept (need to be avector).GAfor regression coefficient matrix from exogenous variable to endogenous variable (need to be amatrix).PHfor exogenous indicator covariance (need to be a symmetricmatrix).KAorMKfor exogenous variable mean (need to be avector).exo=FALSE are
exo=TRUE are
SimParam for the free parameters object details.simParamCFAto specify CFA model and usesimParamSEMto 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