Displaying 2 results from an estimated 2 matches for "ageandsex".
2012 Jan 13
1
GLHT in multcomp: Two similar models, one doesn't work
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 t...
2011 Jan 28
1
Problems making subsets with [] or "subset"
...in
the intensity of a infection, but just in the individuals who's got this
infection. In my data I've got a variable called "prevalence" with 2 levels:
1.- Infected individual
0.- Non infected
So what i'm trying to do is a subset in a model like this,
model<-aov(intensity~ageandsex*month*zone*year,subset=(prevalence=="1"))
Is a correct way?
I prefer to make the subsets with [], but doesn't work, why
> model<-aov(hemogregarinas~edadysexo*mes*zona*ano,[prevalencia=="1"])
Error: inesperado '[' en
"model<-aov(hemogregarinas~edadysexo...