Functions and tips for use in the R statistical environment.
Friday, August 17, 2007
Offset in glm ()
To add an offset to the linear predictor of a generalized linear model (or models from the survival package such as coxph and clogit), use offset(x) in the formula. This will add an offset to the linear predictor with known coefficient 1.
No comments:
Post a Comment