search for: asdoublearray

Displaying 5 results from an estimated 5 matches for "asdoublearray".

2008 Jul 02
1
Extracting regression coef. and p-values in JRClient
...ols/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]]
2009 Jun 12
0
JRclient.RSrvException Exception: Handshake
...------------------------------------------------------------------------ public class RTester { public static void main(String[] args) { Rconnection c = getLocalRconnection(); if (c != null) { try { double[] d = c.eval("rnorm(10)").asDoubleArray(); for (double n : d) System.out.println(n); } catch (RSrvException e) { e.printStackTrace(); } } } private static Rconnection getLocalRconnection() { try { return new Rconnection();...
2009 Mar 11
1
RServe
Dear all, I'm trying to use R-functions from Java. I want to use the Package Rserve. Everthing is installed and I can run my Java-testprogramm. ... Rconnection r = new Rconnection(); double[] d = r.eval("rnorm(10)").asDoubleArray(); ... But now I get always arrays with ten "0.0", which is not correct I suppose, that is is a problem from R, because at the fist time (last week) I started RServe I got an icon in my taskbar which was something about a R server. But I never got it since then... I tried to reinstall R...
2011 Oct 24
0
Problem with calling an user defined R function from Java
...oject_WRAIR/US09493743_251527910706_1_1 T10-105_5day_24hrs"; //where data is the input. re.eval("source('C:/Project_WRAIR/Normalisation.r')"); System.out.println(re); REXP rn = re.eval("my.Normal(data)"); System.out.println(rn); double[] rnd = rn.asDoubleArray(); for(int i=0; i<rnd.length; i++){ System.out.print(rnd[i] + " "); } This gves an NullPointerException and on printing the variable rn, we get null as the output. Please do suggest a way out. Thanks in advance. Surajit Bhattacharya -- View this message in contex...
2010 Jun 19
7
urgente
Hola, quisiera que me dijeran como puedo mandarle unos datos al R, de una aplicación en java. "La educación es lo que queda cuando uno se olvida de todo lo que aprendió en la escuela." [[alternative HTML version deleted]]