[R] logistic regression in R - changing defaults

Bob Green bgreen at dyson.brisnet.org.au
Tue Jan 9 13:16:21 CET 2007


Hello,

I was hoping for some advice in changing 2 defaults in a logistic regression.

1. It looks like the first category is the reference category?  In the 
following syntax 'where' has 4 levels, how can I make the reference 
category the third category?

model<- glm(cbind(sucesses, failures) ~ where + who + firstep + dxnarrow + 
age + sex + medyear, family = binomial, data=life.use)
model

2. Is it possible to round results to 4 decimal points? If so, what syntax 
is required?

Any assistance is appreciated,

Bob Green



More information about the R-help mailing list