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

2012-01-13 Thread gaiarrido
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.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


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

2012-01-13 Thread gaiarrido
Nobody?

-
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-tp4291875p4292889.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.