Learn R Programming

umx (version 1.9.1)

umx_is_exogenous: umx_is_exogenous

Description

Return a list of all the exogenous variables (variables with no incoming single-arrow path) in a model.

Usage

umx_is_exogenous(model, manifests_only = TRUE)

Arguments

model

an mxModel from which to get exogenous variables

manifests_only

Whether to check only manifests (default = TRUE)

Value

- list of exogenous variables

References

- http://tbates.github.io, https://github.com/tbates/umx, http://openmx.ssri.psu.edu

See Also

Other Test: umx_check_OS, umx_check_model, 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_ordered

Examples

Run this code
# NOT RUN {
require(umx)
data(demoOneFactor)
m1 <- umxRAM("One Factor", data = mxData(cov(demoOneFactor), type = "cov", numObs = 500),
	umxPath("g", to = names(demoOneFactor)),
	umxPath(var = "g", fixedAt = 1),
	umxPath(var = names(demoOneFactor))
)
umx_is_exogenous(m1, manifests_only = TRUE)
umx_is_exogenous(m1, manifests_only = FALSE)
# }

Run the code above in your browser using DataLab