[R] logistic regression in R - changing defaults

From: Bob Green <bgreen_at_dyson.brisnet.org.au>
Date: Tue 09 Jan 2007 - 12:16:21 GMT


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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Jan 10 10:33:00 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 10 Jan 2007 - 00:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.