By default, lavaan uses the independence model as the baseline model, in order to compute fit indices like TLI and CFI. A custom baseline model can be passed on, but perhaps there is a better/universal way to build a baseline model that is always nested within the user model.
An initial attempt is made in the function lav_object_baseline() (in lav_object_generate.R). But it still needs work.
By default, lavaan uses the independence model as the baseline model, in order to compute fit indices like TLI and CFI. A custom baseline model can be passed on, but perhaps there is a better/universal way to build a baseline model that is always nested within the user model.
An initial attempt is made in the function
lav_object_baseline()(inlav_object_generate.R). But it still needs work.