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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.