umx_is_exogenous: umx_is_exogenous

umx_is_exogenousR Documentation

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 OpenMx::mxModel() from which to get exogenous variables

manifests_only

Whether to check only manifests (default = TRUE)

Value

  • list of exogenous variables

References

See Also

Other Check or test: umx, umx_check_names(), umx_is_class(), umx_is_endogenous(), umx_is_numeric(), umx_is_ordered()

Examples

## Not run: 
require(umx)
data(demoOneFactor)
m1 = umxRAM("One Factor", data = demoOneFactor, type = "cov",
	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)


## End(Not run)

tbates/umx documentation built on Dec. 14, 2024, 11:28 a.m.