Displaying 1 result from an estimated 1 matches for "malaria1".
Did you mean:
malaria
2011 Jul 26
0
using subset command in glm and glm coefficients output
...looking for whether
parasite prevalence varies with region. ?I'd like to try using just a
subset of the data defined by one these covariates, sex, looking at
data only from adults, without using it as a covariate in the
analyses. ?I tried using subset=sex=='A' in the following context:
malaria1<-glm(Malaria ~ X2sppclass+place+place*X2sppclass,
subset=sex=='A', na.action=na.omit, family=binomial(link="logit""))
with sex being the column name and 'A' standing for adult but R
doesn't seem to like that. ?It says there is an unexpected '=' but
that...