[R] Practical work with logistic regression

Jan van der Laan djvanderlaan at gmail.com
Fri Apr 23 10:11:38 CEST 2010


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