-
Notifications
You must be signed in to change notification settings - Fork 4
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
Additional inference measures (LMR) #46
Comments
Thanks for the suggestions! Sample-size adjusted BIC and CAIC seem easy enough. I'm not 100% about BLRT but I would like to hear StepMix power user @FelixLaliberte's thoughts on this. Is this similar to what you are working on? |
Hi @pcomw, I think all the inference measures you suggest are commonly used and would be much appreciated by users. Thanks for the suggestions! @sachaMorin: To answer your question, the BLRT would indeed be very useful. |
Reviewing this paper, it seems the suggested Sample-Adjusted BIC was missing an n = X.shape[0]
return -2 * self.score(X, Y) * n + self.n_parameters * np.log(
n * ((n + 2) / 24)
) |
I agree, it seems in the paper you linked that it should be However, in the MPlus output, there is a line of text that reads, I suppose that the 1987 Sclove paper is the proper resource to check, but I don't have access to it. I also came across a post with references about the VLMR-LRT in the tidyLPA github that might be relevant, if you choose to implement that in addition the the BLRT: data-edu/tidyLPA#178 (comment) |
Linking this paper here for future reference on BLRT. I feel StepMix has all the building blocks to do this. Will try to include BLRT in the next release. |
CAIC and SABIC are available as of version 2.0.0. |
BLRT is available as of version 2.2.0. See the updated tutorial. |
Once again, thank you for the wonderful work.
I hope to switch over to Stepmix from MPlus, but a few tests that my group uses to evaluate models with different numbers of classes aren't yet in the package, and I was curious about the roadmap.
In the future, are there plans to add other inference measures to the stepmix class? I am thinking in particular of other IC and LRT-type stats:
Sample-size adjusted BIC, e.g.,
-2 * model.score(X) * X.shape[0] + model.n_parameters * np.log((X.shape[0] + 2) / 24)
CAIC, e.g.,
-2 * model.score(X) * X.shape[0] + model.n_parameters * (np.log(X.shape[0]) + 1)
Bootstrap likelihood ratio test (BLRT). E.g., page 543 of https://doi.org/10.1080/10705510701575396
Possibly also the Lo–Mendell–Rubin (LMR) and/or Vuong–Lo–Mendell–Rubin (VLMR) tests.
The IC stats are simple enough to implement, but the BLRT would take a little time.
Thanks again
The text was updated successfully, but these errors were encountered: