[R] Firth logistic regression and odds ratio

2016-07-24 Thread Qinghua He via R-help
Dear all, I have the following table for a breast cancer study and I was trying to calculate the odds ratio of different subtypes based on AR (AR+ as the base case).                   AR-    AR+Luminal A    1     19Luminal B    1     15Her2            0     4Basal-like    20    1Normal Like  2  

[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