Amine Mohamed ROUANE HACENE
2008-Jul-02 16:13 UTC
[R] Extracting regression coef. and p-values in JRClient
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.
-----------------------------------------------
A. M. ROUANE HACENE
rouanehm@loria.fr
[[alternative HTML version deleted]]
Amine Mohamed ROUANE HACENE
2008-Jul-02 16:15 UTC
[R] Extracting regression coef. and p-values in JRClient
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.
-----------------------------------------------
A. M. ROUANE HACENE
rouanehm@loria.fr
[[alternative HTML version deleted]]