ParameterTable interface
Altough you can directly specify a parameter table, this is kind of tedious, so at the moment, we dont have a tutorial for this. As lavaan also uses parameter tables to store model specifications, we are working on a way to convert lavaan parameter tables to StructuralEquationModels.jl parameter tables, but this is still WIP.
Convert from and to RAMMatrices
To convert a RAMMatrices object to a ParameterTable, simply use partable = ParameterTable(rammatrices). To convert an object of type ParameterTable to RAMMatrices, you can use ram_matrices = RAMMatrices(partable).
API
StructuralEquationModels.ParameterTable — Type
ParameterTables contain the specification of a structural equation model.
Constructor
(1) ParameterTable(graph; observed_vars, latent_vars, ...)
(2) ParameterTable(ram_matrices; ...)Return a ParameterTable constructed from (1) a graph or (2) RAM matrices.
Arguments
graph: graph defined via@StenoGraphobserved_vars::Vector{Symbol}: observed variable nameslatent_vars::Vector{Symbol}: latent variable namesram_matrices::RAMMatrices: aRAMMatricesobject
Examples
See the online documentation on Model specification and the Graph interface.
Extended help
Additional keyword arguments
parname::Symbol = :θ: prefix for automatically generated parameter labels