Learn R Programming

umx (version 1.9.1)

umxGetParameters: umxGetParameters: Get parameters from a model

Description

Get the parameter labels from a model. Like omxGetParameters, but supercharged with regular expressions for more power and ease!

Usage

umxGetParameters(inputTarget, regex = NA, free = NA, fetch = c("values",
  "free", "lbound", "ubound", "all"), verbose = FALSE)

Arguments

inputTarget

An object to get parameters from: could be a RAM mxModel

regex

A regular expression to filter the labels defaults to NA - just returns all labels)

free

A Boolean determining whether to return only free parameters.

fetch

What to return: "values" (default) or "free", "lbound", "ubound", or "all"

verbose

How much feedback to give

References

- http://www.github.com/tbates/umx

See Also

Other Reporting Functions: loadings.MxModel, tmx_is.identified, umxAPA, umxFactorScores, umxReduce, umxSummary, umx_APA_pval, umx_aggregate, umx_parameters, umx_print, umx_show, umx_time, umx

Examples

Run this code
# 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)
)
m1 = umxRun(m1)
umxGetParameters(m1)
m1 = umxRun(m1, setLabels = TRUE)
umxGetParameters(m1)
umxGetParameters(m1, free = TRUE) # only parameters which are free 
umxGetParameters(m1, free = FALSE) # only parameters which are fixed
# }
# NOT RUN {
# Complex regex patterns
umxGetParameters(m2, regex = "as_r_[0-9]c_6", free = TRUE) # Column 6 of matrix "as"
# }

Run the code above in your browser using DataLab