Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and implement modification indices for multiple group models #348

Open
mhunter1 opened this issue Jul 8, 2022 · 0 comments
Open

Fix and implement modification indices for multiple group models #348

mhunter1 opened this issue Jul 8, 2022 · 0 comments

Comments

@mhunter1
Copy link
Contributor

mhunter1 commented Jul 8, 2022

There is code that supposedly does modification indices for multiple group models (really just models that have submodels), but it expresses doubt about its own existence. See below from R/MxMI.R.

        # not yet tested
        if(length(model$submodels) > 0){
                for(asubmodel in names(model$submodels)){
                        ret <- c(ret, mxMI(asubmodel)) #probably won't work.
                }
        }

Unsurprisingly, upon a check, it did not work. The error message given by a multiple group model was

Error: object 'ret' not found

There is no previous reference to ret in the mxMI() function definition.

A basic test would use a multiple group behavior genetics model (perhaps with a "sideways" model reference). An alternative check would be a multisubject state space model. One could also try this with Rampart multilevel.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant