coef(mod1)$bird will give you a matrix with two columns. The first
column is the intercept for each bird and the second column is the
slope for each bird.

ranef(mod1) will also give you a matrix of two columns. These
represent the random effects. That is, how much the intercept (or
slope) is shifted from overall mean.

HTH,
Darin

On Thu, Aug 26, 2010 at 01:15:10PM +0100, Samantha Patrick wrote:
> Hi
> 
> I want to extract the random slopes from a lmer (I am doing a random 
> regression), but are the answers obtained from ranef or coef?
> 
> My model is: mod1<-lmer(B~ A +(A|bird), family=quasibinomial)
> 
> And I want to obtain a slope for each individual bird but am not sure which 
> output I need and can't find the answer anywhere.
> 
> Thanks
> 
> Sam
> 
> 
> Dr Samantha Patrick
> EU INTERREG Post Doc
> Davy 618
> Marine Biology & Ecology Research Centre
> University of Plymouth
> Plymouth
> PL4 8AA
> 
> T: 01752 586165
> M: 07740472719
> 
> 
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to