Issue with multiple-group models and blavaan
When I run model_parameters on lavaan and blavaan model objects, it usually works. But I have encountered an issue for sem models with multiple-groups. For lavaan, model_parameters() is able to return the parameter estimates for a multiple-group model object (with a Group column indicating which group the model parameters belong to), but when I run the same multip-group model in blavaan, model_parameters() returns the following error message:
Error in coef_labels[coef_labels == unique_labels[ll]] <- params[param_tab$label == : replacement has length zero
Have others encountered this issue and is there a fix?
Thanks in advance! Niels
Originally posted by @NielsSkovgaard-Olsen in https://github.com/easystats/parameters/issues/185#issuecomment-1165479223