Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8707383
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:51:31+00:00 2026-06-13T03:51:31+00:00

I want to model the treatment effect over time on biological data using lmer()

  • 0

I want to model the treatment effect over time on biological data using lmer() to take into account the individual effect.
The procedure usually used is to build several models by deleting step by step fixed effects and interactions terms and then find the best models using anova(model1,model2) and keeping the most parcimonious model when non significant difference are found.
However I’ve found different model fitness values (AIC, BIC..) between the output of summary(model1) and anova (model1,model2).
Here is the code:

#Data are in z6
m1<-lmer(Brightness~factor(FT)*factor(Time)+(1|ID),z6)
m2<-lmer(Brightness~factor(FT)+factor(Time)+(1|ID),z6)
summary(m1)@AICtab 
AIC     BIC    logLik deviance  REMLdev
2284.223 2335.65 -1128.112  2301.36 2256.223
summary(m2)@AICtab
AIC      BIC    logLik deviance  REMLdev
2298.247 2331.307 -1140.124  2302.42 2280.247
anova(m1,m2)
Data: z6
Models:
m2: Brightness ~ factor(FT) + factor(Time) + (1 | ID)
m1: Brightness ~ factor(FT) * factor(Time) + (1 | ID)
Df    AIC    BIC  logLik  Chisq Chi Df Pr(>Chisq)
m2  9 2320.4 2353.5 -1151.2                         
m1 14 2329.4 2380.8 -1150.7 1.0601      5     0.9576

There 14 AIC unit difference between the two model when comparing the summary() output but only 9 in the anova(). Where does this difference come from?
Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:51:32+00:00Added an answer on June 13, 2026 at 3:51 am

    Your models have different fixed effects and hence fitting via REML is not appropriate for model comparisons of the type you show. The anova() method knows this and computes ML estimates. The summary() method uses the REML estimates (the latter is clearly indicated in the output).

    Notice that the logLik values are different in the two summaries and the anova() output. The former is the REML log likelihood, the latter the ML likelihood. As AIC etc are a function of the log likelihood this is enough to account for the AIC differences reported.

    The anova() method can compute the ML estimates if the model(s) were not fitted via REML and hence does the right thing if the models compared differ in terms of their fixed effects.

    If you are going to deploy these methods in your research I strongly suggest you read up on REML and ML estimation and their relative merits, uses etc if the above is news to you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want model the flight of a couple of planes using path data. I
I want to turn Model.attribute into Attribute.models. e.g. I currently have Model.first.attribute => string
I want to filter my model object using two filters. So, it can be
I want to return the Model (data) of a controller in different formats (JavaScript/XML/JSON/HTML)
I want to send ViewData.model to Special action with the last user data entry.
Say I want to model a system where a piece of data can have
I find it very common to want to model relational data in my functional
I want to model the (biological) cell division process. I have been able to
I want to model e-commerce product attributes that can be changed in run-time. So
I want to create my first application using the EF 4.1 Code First Model.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.