Use backquotes
confint(glht(motA,linfct=mcp(A=c("`2` - `1` = 0 "
On Fri, Mar 4, 2011 at 2:03 PM, Ulrich Halekoh wrote:
> Using a factor with 'number' levels the straightforward
> symbolic formulation of a contrast in 'glht' of
> the 'multcomp' package fails.
>
> How can this problem be
> -Original Message-
> From: r-help-boun...@r-project.org
> [mailto:r-help-boun...@r-project.org] On Behalf Of Ulrich Halekoh
> Sent: Friday, March 04, 2011 11:04 AM
> To: r-help@r-project.org
> Subject: [R] glht: Problem with symbolic contrast for factors
> withnum
Using a factor with 'number' levels the straightforward
symbolic formulation of a contrast in 'glht' of
the 'multcomp' package fails.
How can this problem be resolved without having to redefine the factor levels?
Example:
#A is a factor with 'number' levels
#B similar factor with 'letter' lev
I am struggling with a simple repeated-measure model:
fit<-lme(trait~year * A, random = ~1|subj/year)
A being a factor with three levels. I got have the following results
for anova(fit):
numDF denDF F-value p-value
(Intercept) 1 126 2471.4720 <.0001
year 2060
4 matches
Mail list logo