Skip to content

Differences between glmmPQL and lmer and AIC calculation

1 message · Tonio Pieterek

#
Dear Ben,

thank you very much for your quick reply and for your good advice!

The reason why we won't use mean values is that we will lose a lot of
variance of each individual.
In general behavioural variables (e.g. activity) have been recorded
continiously over a certain time (e.g. a month). These collected data
are already mean values of an hour or a day, listed consecutively one
below the other in one column for each behavioural variable,
respectively. So, all in all, we have several repeated measurements
for each individual (different values, probably even with a time
effect within an individual) whereas the response variable remain the
same all the time.
What we want to find out is, whether the response variable (which is a
fixed individual characteristic trait) can be explained by different
behavioural traits which we have measured continiously; or in other
words: the probability for an individual of being coded 0 or 1
depending on their behaviour.

Hopefully it gets clearer now, so that you or anybody else could give
me further advices about chosing the right model for data analysis.

Anyway, as you've recommended, next step is that I will calculate mean
values of the explanatory variables for each invidivual and run a
simple logistic regression. Let's see what comes out there then.


Many thanks for your help so far, Ben!


Best wishes,
Tonio


---------- Forwarded message ----------
From: Ben Bolker <bbolker at gmail.com>
Date: 2013/7/17
Subject: Re: [R] Differences between glmmPQL and lmer and AIC calculation
To: Tonio Pieterek <t.pieterek at googlemail.com>


   It would be best to continue this on r-sig-mixed-models.  However, as
I think I may have said before, if your response variable doesn't vary
within individuals, then it doesn't make any sense (that I can see) to
use the within-individual variations to try to fit the model.  It would
be best to simply aggregate the within-individual variation in the
predictor variables and get a single set of predictors for each
individual -- typically I would use the mean, but you could use other
summary statistics (min, max, range, standard deviation ...) to the
extent that they made biological sense.

  good luck
    Ben Bolker
On 13-07-17 08:42 AM, Tonio Pieterek wrote: