Re: [R] Why the order of parameters in a logistic regression affects results significantly?

2016-07-22 Thread David Winsemius
> On Jul 21, 2016, at 3:04 PM, Qinghua He via R-help > wrote: > > Using the same data, if I ran > fit2 > <-glm(formula=AR~Age+LumA+LumB+HER2+Basal+Normal,family=binomial,data=RacComp1)summary(fit2)exp(coef(fit2)) > I obtained: exp(coef(fit2))(Intercept) AgeLumALumB

Re: [R] Why the order of parameters in a logistic regression affects results significantly?

2016-07-22 Thread Michael Dewey
Dear Peter Have you tried removing the intercept? Just put -1 at the end of your formula. On 21/07/2016 23:04, Qinghua He via R-help wrote: Using the same data, if I ran fit2 <-glm(formula=AR~Age+LumA+LumB+HER2+Basal+Normal,family=binomial,data=RacComp1)summary(fit2)exp(coef(fit2)) I obtaine

Re: [R] Why the order of parameters in a logistic regression affects results significantly?

2016-07-22 Thread Greg Snow
Please post in plain text, the message is very hard to read with the reformatting that was done. Did you receive any warnings when you fit your models? The fact that the last coefficient is NA in both outputs suggests that there was some co-linearity in your predictor variables and R chose to dro

[R] Why the order of parameters in a logistic regression affects results significantly?

2016-07-21 Thread Qinghua He via R-help
Using the same data, if I ran fit2 <-glm(formula=AR~Age+LumA+LumB+HER2+Basal+Normal,family=binomial,data=RacComp1)summary(fit2)exp(coef(fit2))   I obtained: > exp(coef(fit2))(Intercept)         Age        LumA        LumB        HER2     >   Basal      Normal  0.24866935  1.00433781  0.10639937