sfcheung / semlbci

Find the likelihood based confidence intervals for parameters in structural equation modeling
https://sfcheung.github.io/semlbci/
1 stars 0 forks source link

Allow users to specify the parameters by name #20

Closed sfcheung closed 3 years ago

sfcheung commented 3 years ago

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.

sfcheung commented 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.