
Last chance! 50% off unlimited learning
Sale ends in
Check an OpenMx model
umx_check_model(obj, type = NULL, hasData = NULL, beenRun = NULL,
hasMeans = NULL, checkSubmodels = FALSE)
an object to check
what type the model must be, i.e., "RAM", "LISREL", etc. (defaults to not checking NULL)
whether the model should have data or not (defaults to not checking NULL)
whether the model has been run or not (defaults to not checking NULL)
whether the model should have a means model or not (defaults to not checking NULL)
whether to check submodels (not implemented yet) (default = FALSE)
- boolean
Other Test: umx_check_OS
,
umx_check_names
,
umx_check_parallel
,
umx_check
, umx_has_CIs
,
umx_has_been_run
,
umx_has_means
,
umx_has_square_brackets
,
umx_is_MxData
,
umx_is_MxMatrix
,
umx_is_MxModel
, umx_is_RAM
,
umx_is_cov
,
umx_is_endogenous
,
umx_is_exogenous
,
umx_is_ordered
# NOT RUN {
require(umx)
data(demoOneFactor)
latents = c("G")
manifests = names(demoOneFactor)
m1 <- mxModel("One Factor", type = "RAM",
manifestVars = manifests, latentVars = latents,
mxPath(from = latents, to = manifests),
mxPath(from = manifests, arrows = 2),
mxPath(from = latents, arrows = 2, free = FALSE, values = 1.0),
mxData(cov(demoOneFactor), type = "cov", numObs = 500)
)
umx_check_model(m1)
umx_check_model(m1, type = "RAM") # equivalent to umx_is_RAM()
umx_check_model(m1, hasData = TRUE)
# }
# NOT RUN {
umx_check_model(m1, hasMeans = TRUE)
umx_check_model(m1, beenRun = FALSE)
# }
Run the code above in your browser using DataLab