cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar

How to switch from REML to ML for Model Comparison

Hello!

I am trying to compare two mixed effect models with AIC (or AICc) values. When generating AIC values for model comparison of mixed effect models, I've seen (at least in R) that one must switch from Restricted Maximum Likelihood Estimation (REML) to Maximum Likelihood Estimation (ML). How do I do this in JMP?  I am using JMP 15 Pro provided through my work.

 

Thank you!

 

Info for this procedure in R:

https://r.qcbs.ca/workshop07/book-en/step-2.-code-potential-models-and-model-selection.html 

1 ACCEPTED SOLUTION

Accepted Solutions
MRB3855
Super User

Re: How to switch from REML to ML for Model Comparison

Hi @DensityOfOkapi2 . I don’t think ML is an option…it certainly isn’t in Standard JMP.

View solution in original post

5 REPLIES 5

Re: How to switch from REML to ML for Model Comparison

Hello! 

I have also attached below some dummy data and screenshots of model formulationsScreen Shot 2024-05-08 at 3.08.32 PM.pngScreen Shot 2024-05-08 at 3.06.31 PM.png following the structure of the two models I am trying to compare below. I'm looking for a place to switch from Restricted Maximum Likelihood Estimation (REML) to Maximum Likelihood Estimation (ML) for AIC comparison

Thank you!

 

 

 

 

MRB3855
Super User

Re: How to switch from REML to ML for Model Comparison

Hi @DensityOfOkapi2 . I don’t think ML is an option…it certainly isn’t in Standard JMP.

Re: How to switch from REML to ML for Model Comparison

Thank you! Yeah I haven't had any luck in my search on JMP 15 Pro for ML

Re: How to switch from REML to ML for Model Comparison

Thank you @Mark_Bailey ! My rationale for wanting to switch from REML to ML is based in model selection protocol for R. Where one cannot compare the AIC values of two mixed effect models that differ in their fixed effect structures when using REML. The math underlying this goes over my head, but presumably the same comparison applies to comparisons of mixed effect models using REML in JMP? Or perhaps JMP automatically refits the model using ML to generate the AICc values to facilitate model comparisons. If such refitting is going on "under the hood" that'd be great to know!

 

Faraway (2006) Extending the linear model with R (p. 156):

"The reason is that REML estimates the random effects by considering linear combinations of the data that remove the fixed effects. If these fixed effects are changed, the likelihoods of the two models will not be directly comparable"

 

 

Re: How to switch from REML to ML for Model Comparison

I do not see why you need to use ML instead of REML to estimate the model parameters and compute AICc. I used another example from the JMP Sample Data Folder, Wheat.jmp, and set up a similar model:

laun.JPG

Click the red triangle at the top and select Regression Reports > AICc:

menu.JPG

This criterion is added to the Summary of Fit outline:

aicc.JPG