Closed sfcheung closed 1 year ago
lavaan_rerun()
est_change()
est_change_raw()
fit_measures()
mahalanobis_rerun()
mahalanobis_predictors()
influence_stat()
fit_measures_approx()
est_change_approx()
est_change_raw_approx()
implied_scores()
Working on the branch multi_sample.
multi_sample
For a multi-sample models, lavaan stores the data as (1) a list of matrix, and (2) a list of case.idx matching the cases to the original dataset.
lavaan
case.idx
Possible approach:
gen_fct_use_lavaan
lavaan_rerun
Most other functions should work fine whether the model is multi-sample or not.
Mahalanobis distance is computed using within-group means and covariance matrices.
To-Do
lavaan_rerun()
to support multiple-group models.est_change()
to support multiple-group models.est_change_raw()
to support multiple-group models.fit_measures()
to support multiple-group models.mahalanobis_rerun()
to support multiple-group models.mahalanobis_predictors()
to support multiple-group models.influence_stat()
to support multiple-group models.fit_measures_approx()
to support multiple-group models.est_change_approx()
to support multiple-group models.est_change_raw_approx()
to support multiple-group models.implied_scores()
to support multiple-group models.influence_stat()
to support multiple-group models.Status
Working on the branch
multi_sample
.Note
For a multi-sample models,
lavaan
stores the data as (1) a list of matrix, and (2) a list ofcase.idx
matching the cases to the original dataset.Possible approach:
case.idx
.gen_fct_use_lavaan
, reconstruct the full dataset and proceed as usual using case index in the full sample.lavaan_rerun
, only lines on case ids need to be revised.Most other functions should work fine whether the model is multi-sample or not.
Mahalanobis distance is computed using within-group means and covariance matrices.