Skip to content

maintaining specified factor contrasts when subsetting in lmer

3 messages · Afshartous, David, Francisco J. Zagmutt

#
See ?relevel

Regards,

Francisco
Afshartous, David wrote:
#
I'm familiar w/ relevel but that doesn't seem to help here 
(e.g., tried setting the reference level to 3 but the second
model w/ the subset argument doesn't seem to estimate the 
desired model).

Possibly another contrasts statement needs to be provided prior 
to the second model, this time w/ a reduced number of levels, but
that seems to introduce problems w.r.t. the total number of levels
prior to subsetting.   

Is the only way around this to define a new dataframe for the subset
and define the contrasts for that dataframe accordingly?

 

-----Original Message-----
From: Francisco J. Zagmutt [mailto:gerifalte28 at hotmail.com] 
Sent: Friday, July 06, 2007 6:40 PM
To: Afshartous, David
Cc: r-help at stat.math.ethz.ch
Subject: Re: maintaining specified factor contrasts when subsetting in
lmer

See ?relevel

Regards,

Francisco
Afshartous, David wrote:
This
this