[R] fit.contrast error

Dani Valverde daniel.valverde at uab.cat
Fri Jun 6 18:32:14 CEST 2008


Hello,
I am trying to perform a fit.contrast() on a lme object with this code:

attach(error_DB)
model_temperature <- lme(Error ~ Temperature, data = error_DB,random=~1|ID)
summary(model_temperature)
fit.contrast(model_temperature, "Temperature", c(-1,1), conf.int=0.95 )
detach(error_DB)

but I got this error

Error in `contrasts<-`(`*tmp*`, value = c(-0.5, 0.5)) :
  contrasts apply only to factors

My database is a dataframe, very similar to that of the Orthodont. Could 
anyone give me some advise on how to solve the problem?

Best,

Dani


-- 
Daniel Valverde Saubí

Grup de Biologia Molecular de Llevats
Facultat de Veterinària de la Universitat Autònoma de Barcelona
Edifici V, Campus UAB
08193 Cerdanyola del Vallès- SPAIN

Centro de Investigación Biomédica en Red
en Bioingeniería, Biomateriales y
Nanomedicina (CIBER-BBN)

Grup d'Aplicacions Biomèdiques de la RMN
Facultat de Biociències
Universitat Autònoma de Barcelona
Edifici Cs, Campus UAB
08193 Cerdanyola del Vallès- SPAIN
+34 93 5814126



More information about the R-help mailing list