Re: [R] glht: Problem with symbolic contrast for factors with number-levels

2011-03-04 Thread Richard M. Heiberger
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

Re: [R] glht: Problem with symbolic contrast for factors withnumber-levels

2011-03-04 Thread William Dunlap
> -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

[R] glht: Problem with symbolic contrast for factors with number-levels

2011-03-04 Thread Ulrich Halekoh
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

[R] glht problem

2009-05-19 Thread Stats Wolf
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