umx_is_RAM: umx_is_RAM

umx_is_RAMR Documentation

umx_is_RAM

Description

Utility function returning a binary answer to the question "Is this a RAM model?"

Usage

umx_is_RAM(obj)

Arguments

obj

an object to be tested to see if it is an OpenMx RAM OpenMx::mxModel()

Value

  • Boolean

References

See Also

Other Test: umx_check(), umx_check_OS(), umx_check_model(), umx_check_names(), umx_check_parallel(), 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_cov()

Examples

## Not run: 
require(umx)
data(demoOneFactor)
manifests = names(demoOneFactor)
m1 = umxRAM("is_RAM_ex", data = demoOneFactor, type = "cov",
	umxPath("G", to = manifests),
	umxPath(var = manifests),
	umxPath(var = "G", fixedAt = 1)
)

if(umx_is_RAM(m1)){
	message("nice RAM model!")
}
if(!umx_is_RAM(m1)){
	message("model needs to be a RAM model")
}

## End(Not run)

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