Re: [R] confint function in MASS package for logistic regression analysis

2012-01-18 Thread William Dunlap
Your original data must have looked something like the following: sib.data <- data.frame(sib=rep(c(0,1,0,1), c(159,4,162,37)), sex=rep(c(0,0,1,1), c(159, 4, 162, 37))) as that gives the 2x2 table you showed (with 'Response' -> 'sib'): > table(sib.data) sex sib

Re: [R] confint function in MASS package for logistic regression analysis

2012-01-18 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- > project.org] On Behalf Of Jerome Myers > Sent: Wednesday, January 18, 2012 7:27 AM > To: r-help@r-project.org > Subject: [R] confint function in MASS package for logistic regression > analysis > > I have

Re: [R] confint function in MASS package for logistic regression analysis

2012-01-18 Thread Prof Brian Ripley
Yes, the results from confint() are much more accurate than yours and SPSS's. (As Bill Venables once said in a similar circumstance: this is not the place to report bugs in SPSS.) Hint: the word 'profile' appears all over the place on the help pages. confint() uses profile likelihood methods.

Re: [R] confint function in MASS package for logistic regression analysis

2012-01-18 Thread Marc Schwartz
On Jan 18, 2012, at 9:27 AM, Jerome Myers wrote: > I have the following binary data set: > Sex > Response 0 1 >0 159 162 >1 4 37 > My commands > library(MASS) > sib.glm=glm(sib~sex,family=binomial,data=sib.data) >