Re: [R] Odds ratios in logistic regression models with interaction

2016-08-04 Thread peter dalgaard
t; Sent: Thursday, August 04, 2016 9:12 AM > To: Laviolette, Michael > Cc: r-help@r-project.org > Subject: Re: [R] Odds ratios in logistic regression models with interaction > > I suspect that "you can't get there from here"... a1$fit and a2$fit are not > independ

Re: [R] Odds ratios in logistic regression models with interaction

2016-08-04 Thread Laviolette, Michael
7 exp(est.ln.or - 1.96 * se.ln.or) # [1,] 1.712885 exp(est.ln.or + 1.96 * se.ln.or) # [1,] 8.877148 -Original Message- From: peter dalgaard [mailto:pda...@gmail.com] Sent: Thursday, August 04, 2016 9:12 AM To: Laviolette, Michael Cc: r-help@r-project.org Subject: Re: [R] Odds ratios in logi

Re: [R] Odds ratios in logistic regression models with interaction

2016-08-04 Thread Laviolette, Michael
-Original Message- From: Michael Dewey [mailto:li...@dewey.myzen.co.uk] Sent: Thursday, August 04, 2016 8:32 AM To: Laviolette, Michael; r-help@r-project.org Subject: Re: [R] Odds ratios in logistic regression models with interaction Laviolette, Michael wrote : > I'm trying t

Re: [R] Odds ratios in logistic regression models with interaction

2016-08-04 Thread peter dalgaard
I suspect that "you can't get there from here"... a1$fit and a2$fit are not independent, so you can't work out the s.e. of their difference using sqrt(a1$se.fit^2+a2$se.fit^2). You need to backtrack a bit and figure out how a1$fit-a2$fit relates to coef(fit3.16). I suspect it is actually just

Re: [R] Odds ratios in logistic regression models with interaction

2016-08-04 Thread Michael Dewey
Laviolette, Michael wrote : > I'm trying to reproduce some results from Hosmer & Lemeshow's "Applied > Logistic > Regression" second edition, pp. 74-79. The objective is to estimate odds > ratios > for low weight births with interaction between mother's age and weight > (dichotomized at 110 lb.

[R] Odds ratios in logistic regression models with interaction

2016-08-03 Thread Laviolette, Michael
I'm trying to reproduce some results from Hosmer & Lemeshow's "Applied Logistic Regression" second edition, pp. 74-79. The objective is to estimate odds ratios for low weight births with interaction between mother's age and weight (dichotomized at 110 lb.). I can get the point estimates, but I c