search for: createdatafram

Displaying 16 results from an estimated 16 matches for "createdatafram".

Did you mean: createdataframe
2017 Oct 27
2
How to do a "Box's M" Test with
Trying to get past a frustrating error to do a "simple" Box's M test using Java. The Box's M test says it will work with a data.frame. Here's the setup code: REXP myDf = REXP.createDataFrame(new RList( new REXP[] { new REXPDouble(d1), new REXPDouble(d2), new REXPDouble(d3), new REXPDouble(d4), new REXPInteger(d5) })); Here's the call: REXP boxMResult = rConnection.eval( "boxM(" + myDf+ "[,-5], " + myDf + " [, 5])"); But, I keep getting syntax error...
2017 Oct 27
4
Cannot Compute Box's M (Three Days Trying...)
...r) ((RList) tableRead).get(1)).asDoubles(); double[] d3 = ((REXPVector) ((RList) tableRead).get(2)).asDoubles(); double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); String[] d5 = ((REXPVector) ((RList) tableRead).get(4)).asStrings(); // create data frame with data.REXP myDf = REXP.createDataFrame(new RList( new REXP[] { new REXPDouble(d1), new REXPDouble(d2), new REXPDouble(d3), new REXPDouble(d4), new REXPString(d5) })); // assign the data to a variable as was suggested.rConnection.assign("boxMVariable", myDf); // create a string command with that variable name.String boxVaria...
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
...tor) ((RList) tableRead).get(1)).asDoubles(); double[] d3 = ((REXPVector) ((RList) tableRead).get(2)).asDoubles(); double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); int[] d5 = ((REXPVector) ((RList) tableRead).get(4)).asIntegers(); // create data frame with data.REXP myDf = REXP.createDataFrame(new RList( new REXP[] { new REXPDouble(d1), new REXPDouble(d2), new REXPDouble(d3), new REXPDouble(d4), new REXPInteger(d5) })); Here are the results from the eval debug code. head(boxMVariable) ? Gives the high level 5 objects. typeof(boxMVariable): ?list? class(boxMVariable) : ?data.frame?...
2013 Apr 14
5
Logistic regression
I have a data set to be analyzed using to binary logistic regression. The data set is iin grouped form. My question is: how I can compute Hosmer-Lemeshow test and measures like sensitivity and specificity? Any suggestion will be greatly appreciated. Thank you Endy [[alternative HTML version deleted]]
2017 Oct 27
0
How to do a "Box's M" Test with
On 27/10/2017 8:10 AM, Morkus via R-devel wrote: > Trying to get past a frustrating error to do a "simple" Box's M test using Java. > > The Box's M test says it will work with a data.frame. > > Here's the setup code: > > REXP myDf = REXP.createDataFrame(new RList( > new REXP[] > { > new REXPDouble(d1), > new REXPDouble(d2), > new REXPDouble(d3), > new REXPDouble(d4), > new REXPInteger(d5) > })); > > Here's the call: > > REXP boxMResult = rConnection.eval( "boxM(" + myDf+ "[,-5], " + my...
2010 Mar 24
0
Trying to create R dataframe with JRI
...t and create REXP dataframes from those lists. I found an example here: http://code.google.com/p/jamsim/source/browse/trunk/JAMSIM/src/org/jamsim/r/RInterfaceHL.java?spec=svn52&r=52 ... RList rlist = new RList(vectors.size(), true); ... // turn the rlist into a dataframe REXP dataframe = REXP.createDataFrame(rlist); .... both of these constructors do not exist in JRI (apparently). They must use a different set of libraries (?) and I am now puzzeled. How can I create a dataframe from Strings and integers? I managed to create RVectors: ArrayList<RVector> vectors = new ArrayList<RVector>()...
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
...ubles(); >> double[] d3 = ((REXPVector) ((RList) tableRead).get(2)).asDoubles(); >> double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); >> String[] d5 = ((REXPVector) ((RList) tableRead).get(4)).asStrings(); >> // create data frame with data.REXP myDf = REXP.createDataFrame(new RList( >> new REXP[] >> { >> new REXPDouble(d1), >> new REXPDouble(d2), >> new REXPDouble(d3), >> new REXPDouble(d4), >> new REXPString(d5) >> })); >> // assign the data to a variable as was suggested.rConnection.assign("boxMVariable&q...
2017 Oct 28
2
Cannot Compute Box's M (Three Days Trying...)
...] d3 = ((REXPVector) ((RList) tableRead).get(2)).asDoubles(); >>> double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); >>> String[] d5 = ((REXPVector) ((RList) tableRead).get(4)).asStrings(); >>> // create data frame with data.REXP myDf = >>> REXP.createDataFrame(new RList( >>> new REXP[] >>> { >>> new REXPDouble(d1), >>> new REXPDouble(d2), >>> new REXPDouble(d3), >>> new REXPDouble(d4), >>> new REXPString(d5) >>> })); >>> // assign the data to a variable as was >>>...
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
...s(); > double[] d3 = ((REXPVector) ((RList) tableRead).get(2)).asDoubles(); > double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); > *int**[] d5 = ((REXPVector) ((RList) tableRead).get(**4**)).asIntegers();* > > /// create data frame with data. > /REXP myDf = REXP.createDataFrame(new RList( > new REXP[] > { > new REXPDouble(d1), > new REXPDouble(d2), > new REXPDouble(d3), > new REXPDouble(d4), > *new **REXPInteger(d5)* > })); > > Here are the results from the eval debug code. > > head(boxMVariable)? ? Gives the high level 5 objects. &g...
2017 Oct 29
2
Cannot Compute Box's M (Three Days Trying...)
...;> double[] d3 = ((REXPVector) ((RList) tableRead).get(2)).asDoubles(); >> double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); >> int*[] d5 = ((REXPVector) ((RList) tableRead).get(4)).asIntegers();* >> /// create data frame with data. >> /REXP myDf = REXP.createDataFrame(new RList( >> new REXP[] >> { >> new REXPDouble(d1), >> new REXPDouble(d2), >> new REXPDouble(d3), >> new REXPDouble(d4), >> *new *REXPInteger(d5) >> })); >> Here are the results from the eval debug code. >> head(boxMVariable) ? Gives th...
2017 Oct 27
0
Cannot Compute Box's M (Three Days Trying...)
...t(1)).asDoubles(); > double[] d3 = ((REXPVector) ((RList) tableRead).get(2)).asDoubles(); > double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); > String[] d5 = ((REXPVector) ((RList) tableRead).get(4)).asStrings(); > > // create data frame with data.REXP myDf = REXP.createDataFrame(new RList( > new REXP[] > { > new REXPDouble(d1), > new REXPDouble(d2), > new REXPDouble(d3), > new REXPDouble(d4), > new REXPString(d5) > })); > > // assign the data to a variable as was suggested.rConnection.assign("boxMVariable", myDf); > > // cre...
2017 Oct 29
0
Cannot Compute Box's M (Three Days Trying...)
...((RList) tableRead).get(2)).asDoubles(); >> double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); >> /int/*[] d5 = ((REXPVector) ((RList) >> tableRead).get(*4*)).asIntegers();* >> /// create data frame with data. >> /REXP myDf = REXP.createDataFrame(new RList( >> new REXP[] >> { >> new REXPDouble(d1), >> new REXPDouble(d2), >> new REXPDouble(d3), >> new REXPDouble(d4), >> *new */REXPInteger(d5)/ >> })); >> Here are the results from the eval debug code. &...
2017 Oct 27
0
Cannot Compute Box's M (Three Days Trying...)
...et(1)).asDoubles(); > double[] d3 = ((REXPVector) ((RList) tableRead).get(2)).asDoubles(); > double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); > String[] d5 = ((REXPVector) ((RList) tableRead).get(4)).asStrings(); > > // create data frame with data.REXP myDf = REXP.createDataFrame(new RList( > new REXP[] > { > new REXPDouble(d1), > new REXPDouble(d2), > new REXPDouble(d3), > new REXPDouble(d4), > new REXPString(d5) > })); > > // assign the data to a variable as was suggested.rConnection.assign("boxMVariable", > myDf); > > //...
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
...] d3 = ((REXPVector) ((RList) tableRead).get(2)).asDoubles(); >> double[] d4 = ((REXPVector) ((RList) tableRead).get(3)).asDoubles(); >> String[] d5 = ((REXPVector) ((RList) tableRead).get(4)).asStrings(); >> // create data frame with data.REXP myDf = >> REXP.createDataFrame(new RList( >> new REXP[] >> { >> new REXPDouble(d1), >> new REXPDouble(d2), >> new REXPDouble(d3), >> new REXPDouble(d4), >> new REXPString(d5) >> })); >> // assign the data to a variable as was >>...
2017 Oct 26
1
How to create a table structure in Java code?
Thanks! I just figured it out (thanks to "Beyond Compare") and was coming here to post back. The boxM test doesn't work with that (now, finally working) REXP structure, but I probably now need to create a table or something and parse that structure. So much fun! :) Thanks again. - M Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email. > --------
2017 Oct 28
0
Cannot Compute Box's M (Three Days Trying...)
...tor) ((RList) tableRead).get(2)).asDoubles(); >> double[] d4 = ((REXPVector) ((RList) >> tableRead).get(3)).asDoubles(); String[] d5 = ((REXPVector) >> ((RList) tableRead).get(4)).asStrings(); // create data frame >> with data.REXP myDf = REXP.createDataFrame(new RList( new >> REXP[] { new REXPDouble(d1), new REXPDouble(d2), new >> REXPDouble(d3), new REXPDouble(d4), new REXPString(d5) })); // >> assign the data to a variable as was >> suggested.rConnection.assign("boxMVariable", myDf);...