[R] Extracting regression coef. and p-values in JRClient

From: Amine Mohamed ROUANE HACENE <rouanehm_at_loria.fr>
Date: Wed, 02 Jul 2008 18:15:26 +0200

Hi there,
I am using JRClient to build logistic regression model in the following manner :

        Rconnection c = new Rconnection();
         c.eval("KSN<-read.table(\"/Users/amine/Documents/Research/ 
Tools/R/D2R1.txt\",header=T,sep=\",\")");
         c.eval("result <- glm(Nausea ~ Kaletra*Sustiva, family =  
binomial(link = logit), data =KSN)");

I can obtain the coef. using:

  REXP coeffExp = c.eval("coefficients(result)");    double[] coeff = coeffExp.asDoubleArray();

how could I transfer the p-values, i.e., Pr (>|z|), for each coef., in java vector, based on the variable 'result'.

Thanks.


  1. M. ROUANE HACENE rouanehm_at_loria.fr

        [[alternative HTML version deleted]]



R-help_at_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. Received on Wed 02 Jul 2008 - 20:29:16 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 02 Jul 2008 - 20:31:51 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive