Skip to content
Prev 244040 / 398506 Next

Help with GAM (mgcv)

OK, try...
model3=gam(Symptoms~as.factor(txerad)+as.factor(maritalStatus),family=binomial,data=data2)
or 
model3=gam(data2$Symptoms~as.factor(data2$txerad)+as.factor(data2$maritalSt
atus),family=binomial)
... both types of construction work with the current mgcv:gam (and with glm). 
Your construction doesn't work with the current mgcv:gam (or the current 
glm).
On Monday 06 December 2010 12:01, Stressed1985 wrote: