Displaying 1 result from an estimated 1 matches for "glmdead".
2012 Mar 10
0
Help with confidence intervals for gam model using mgcv
...hospital outcomes in a large data set. The
outcomes of interest to me are all binary variables. The one
in the example here, Dead30d, is death within 30 days of
admission. Sexf is gender (M or F), Age is age in years at
the start of the admission. The standard glm is a logistic
regression :-
glmDead.AS <- glm(Dead30d~Sexf+Age,
data=HIPE,family=binomial(link="logit"))
The corresponding GAM, with a smooth for age, is :-
gamDead.AS <- gam(Dead30d~Sexf+s(Age),
data=HIPE,family=binomial(link="logit"))
For my work, age is a nuisance. We already know exactly the
effect...