Re: [R] puzzling results from logistic regression

2012-02-29 Thread Peter Ehlers
Michael (OP), Not that it's necessary, but you might also find confint(aa) to be instructive. Peter Ehlers On 2012-02-29 07:20, R. Michael Weylandt wrote: Formally, look at Pr(>|z|). Informally, look at the null and residual deviances from print(aa). Michael On Wed, Feb 29, 2012 at 10:14 AM

Re: [R] puzzling results from logistic regression

2012-02-29 Thread Ben Bolker
Michael gmail.com> writes: > > Hi all, > > As you can see from below, the result is strange... > > I would imagined that the bb result should be much higher and close to 1, > any way to improve the fit? > > Any other classification methods? > > Thank you! > > data=data.frame(y=rep(c(0, 1),

Re: [R] puzzling results from logistic regression

2012-02-29 Thread Bert Gunter
Please folks ... On Wed, Feb 29, 2012 at 7:14 AM, Michael wrote: > How did you see it's non-significant? You need to take or review a basic statistics course. Pr(>|Z|) is your P value. > > Thanks! > > On Wed, Feb 29, 2012 at 9:10 AM, Sarah Goslee wrote: > >> On Wed, Feb 29, 2012 at 10:02 AM, Mi

Re: [R] puzzling results from logistic regression

2012-02-29 Thread R. Michael Weylandt
Formally, look at Pr(>|z|). Informally, look at the null and residual deviances from print(aa). Michael On Wed, Feb 29, 2012 at 10:14 AM, Michael wrote: > How did you see it's non-significant? > > Thanks! > > On Wed, Feb 29, 2012 at 9:10 AM, Sarah Goslee wrote: > >> On Wed, Feb 29, 2012 at 10:02

Re: [R] puzzling results from logistic regression

2012-02-29 Thread Michael
How did you see it's non-significant? Thanks! On Wed, Feb 29, 2012 at 9:10 AM, Sarah Goslee wrote: > On Wed, Feb 29, 2012 at 10:02 AM, Michael wrote: > > Hi all, > > > > As you can see from below, the result is strange... > > Not really. > > > I would imagined that the bb result should be much

Re: [R] puzzling results from logistic regression

2012-02-29 Thread Sarah Goslee
On Wed, Feb 29, 2012 at 10:02 AM, Michael wrote: > Hi all, > > As you can see from below, the result is strange... Not really. > I would imagined that the bb result should be much higher and close to 1, > any way to improve the fit? > > Any other classification methods? > > Thank you! > > data=d

[R] puzzling results from logistic regression

2012-02-29 Thread Michael
Hi all, As you can see from below, the result is strange... I would imagined that the bb result should be much higher and close to 1, any way to improve the fit? Any other classification methods? Thank you! data=data.frame(y=rep(c(0, 1), times=100), x=1:200) aa=glm(y~x, data=data, family=binom