[R] Practical work with logistic regression

Claus O'Rourke claus.orourke at gmail.com
Fri Apr 23 19:20:48 CEST 2010


Thanks everyone for the replies, that sure cleared up some things for me.

On Fri, Apr 23, 2010 at 9:11 AM, Jan van der Laan
<djvanderlaan at gmail.com> wrote:
> When you just want to calculate the probability of belong to class A
> or B of a new observation xi and do not have to do any new model
> estimations or other analyses, the easiest way is probably to write
> the estimated coefficients to a text write and read them in in your
> java/c/whatever program and use them directly to calculate the
> probabilities. This is simply
>
>  p_i = 1/(1+e^(-(b0 + b1 x1i + ... + bk xki)))
>
> with the b0 ... bk your parameters. Easy to implement. Having an
> interface to R for this seems to me overkill.
>
> Regards,
> Jan
>



More information about the R-help mailing list