[R] Probit predictions outside (0,1) interval

Berwin A Turlach berwin at jacksonia.maths.uwa.edu.au
Fri Mar 5 09:23:53 CET 2004


>>>>> "AM" == Arnab mukherji <arnab at myrealbox.com> writes:

    AM> Any advice would be really helpful.
Read the documentation of predict and then the one of predict.glm? ;-) 

I guess you actually wanted to do one of the following:

> yhat<-predict(g, dat, type="response")
> range(yhat)
[1] 0.2760238 0.9229622

or,

> yhat<-fitted(g)
> range(yhat)
[1] 0.2760238 0.9229622

Cheers,

        Berwin




More information about the R-help mailing list