Learn R Programming

umx (version 1.9.1)

umx_string_to_algebra: Convert a string to an OpenMx algebra

Description

This is useful use to quickly and easily insert values from R variables into the string (using paste() and rep() etc.), then parse the string as an mxAlgebra argument. A use case is including a matrix exponent (that is A

Usage

umx_string_to_algebra(algString, name = NA, dimnames = NA)

Arguments

algString

a string to turn into an algebra

name

of the returned algebra

dimnames

of the returned algebra

Value

- mxAlgebra

References

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

See Also

Other Misc: umxEval, umx_APA_model_CI, umx_add_variances, umx_apply, umx_default_option, umx_get_bracket_addresses, umx_object_as_str, umx

Examples

Run this code
# NOT RUN {
alg = umx_string_to_algebra(paste(rep("A", nReps), collapse = " %*% "), name = "test_case")
# }

Run the code above in your browser using DataLab