[R] GLHT in multcomp: Two similar models, one doesn't work

gaiarrido gaiarrido at usal.es
Fri Jan 13 11:36:25 CET 2012


i ran this model 

> model2<-glm(rojos~ageandsex+sector+season+sector:season,quasipoisson)

> glht(model2,linfct=mcp(ageandsex="Tukey"))

         General Linear Hypotheses

Multiple Comparisons of Means: Tukey Contrasts


Linear Hypotheses:
             Estimate
M - H == 0     0.2898
SUB - H == 0  -0.2261
SUB - M == 0  -0.5159


I tried to do the same changing factor season (with 2 levels) for month
(with four levels), and i get an error and no results

> monthmodel2<-glm(rojos~ageandsex+sector+month+sector:month,quasipoisson)

> glht(monthmodel2,linfct=mcp(ageandsex="Tukey"))
Error en modelparm.default(model, ...) : 
  dimensions of coefficients and covariance matrix don't match


I understand nothing, Why this is happen.

I beg for your help


-----
Mario Garrido Escudero
PhD student
Dpto. de Biología Animal, Ecología, Parasitología, Edafología y Qca. Agrícola
Universidad de Salamanca
--
View this message in context: http://r.789695.n4.nabble.com/GLHT-in-multcomp-Two-similar-models-one-doesn-t-work-tp4291875p4291875.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list