umx_is_endogenous: List endogenous variables in a model

umx_is_endogenousR Documentation

List endogenous variables in a model

Description

Return a list of all the endogenous variables (variables with at least one incoming single-arrow path) in a model.

Usage

umx_is_endogenous(model, manifests_only = TRUE)

Arguments

model

an mxModel() from which to get endogenous variables

manifests_only

Whether to check only manifests (default = TRUE)

Value

  • list of endogenous variables

References

See Also

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

Examples

## Not run: 
require(umx)
data(demoOneFactor)
m1 = umxRAM("umx_is_endogenous", data = demoOneFactor, type = "cov",
	umxPath("g", to = names(demoOneFactor)),
	umxPath(var = "g", fixedAt = 1),
	umxPath(var = names(demoOneFactor))
)
umx_is_endogenous(m1, manifests_only = TRUE)
umx_is_endogenous(m1, manifests_only = FALSE)


## End(Not run)

umx documentation built on May 29, 2024, 5:40 a.m.