Closed sfcheung closed 3 years ago
Done. In semlbci
, if pars
is of the type character
, it will be passed to syntax_to_i
to find the corresponding position in the parameter table. User-defined parameters can be specified too, with ":=" appended to their labels.
All tests passed.
Use lavaan syntax (e.g., y ~ x). Add a function to convert them to parameter positions. This can be done easily by
lavaan::lavaanify
. Use it to create a parameter table and then match it with the parameter table of the fit object.