[R] how to get the p-value in ctree?

2009-11-17 Thread Maxl18
Hallo, can anybody tell me how the ctree-algorithm derives the p-value. I read the papers from hothorn, hornik and zeileis, but it is not clear for me how to get the p-value. I derived the teststatistic and want to get the appropriate p-value. As I understand it, the p-value is some kind of

[R] Start Klimt from R

2009-04-02 Thread Maxl18
Hello, I want to start Klimt from S.Urbanek directly from R. In the description of klimt is the following R-Code: source(klimt.r); d-read.table(mydataset.txt); t-tree(OUT2~.,d); Klimt(t,d); One should make sure, that the klimt.jar is in the working directory of R (in my case C:\Program

[R] Change teh datatype from factor to double

2009-03-24 Thread Maxl18
Hi all, I want to read a .txt dataset, but when I test the type, some of the data is a factor. How can I avoid them to get a factor or how can I unfactor them without loosing their values? Thanks, Max -- View this message in context:

Re: [R] Import R-output into Java

2009-03-20 Thread Maxl18
()); Where is my mistake? Cheers, Max Thomas Roth (geb. Kaliwe) wrote: #I used sink ?sink #Thomas Maxl18 schrieb: Hello, I want to import R-output via Rserve to Java, especially for the function ctree from the package party. Rserve is working properly. Yet, I only get

Re: [R] Import R-output into Java

2009-03-20 Thread Maxl18
()); Romain Maxl18 wrote: Thanks, sink was exactly the function I searched. It properly works in R, but when I try to launch it from Java, the file is created but never written any output... con.voidEval(test.txt); // file is created con.voidEval(1+1);// nothing is written

[R] Import R-output into Java

2009-03-19 Thread Maxl18
Hello, I want to import R-output via Rserve to Java, especially for the function ctree from the package party. Rserve is working properly. Yet, I only get the predictions with the Java code try{ RConnection c = new RConnection(); ... c.voidEval(modell - ctree(...));

[R] ctree from Java via Rserve

2009-03-13 Thread Maxl18
Hi, I want to run the R-function ctree (package party) from Java over Rserve with the following Java-Code: try{ RConnection v = new RConnection(); v.voidEval(library(party)); v.voidEval(try(load(\C:\\Documents and Settings\\daten2.rda\))); v.voidEval(try(pdf(\C:\\Documents and

[R] set size of a plot

2009-03-12 Thread Maxl18
Hi, I have the following R-code: pdf(file=test.pdf) hist(rcauchy(100)) dev.off() How can I set the size of the histogram in my pdf? I tried to do with par(...) but I didn't find the right parameter yet. Thanks, Max -- View this message in context:

[R] RServe

2009-03-11 Thread Maxl18
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

[R] Install JRI?

2009-03-10 Thread Maxl18
Hi all, Who can help me to install JRI I downloaed the file JRI_0.3-6.tar and although I read the documentation I don't know what to do now. I use Windows XP, Java 1.5.0_17 and R 2.8.1. Thanks for your response, Max -- View this message in context:

[R] function ctree in package party

2009-03-06 Thread Maxl18
Hi, I have a problem with the function ctree in the package party. When I launch ctree with weights=NULL it works. ctree(function~var1+var2, data=datalist, weights=NULL, controls=ctree_control(mincriterion=0.95, maxdepth=4, teststat=quad,testtype=Bonferroni)) But when I try