Re: [Rd] Cannot Compute Box's M (Three Days Trying...)

2017-10-27 Thread Duncan Murdoch
Just print the string you are asking to R to evaluate. It doesn't make any sense as an R expression. Fix that, and things will work. Duncan Murdoch On 27/10/2017 3:41 PM, Morkus via R-devel wrote: It can't be this hard, right? I really need a shove in the right direction here. Been spinning

Re: [Rd] Cannot Compute Box's M (Three Days Trying...)

2017-10-27 Thread William Dunlap via R-devel
Does it work if you supply the closing parenthesis on the call to boxM? The parser says the input is incomplete and a missing closing parenthesis would cause that error.. // create a string command with that variable name.String boxVariable = "boxM(boxMVariable [,-5], boxMVariable[,5]"; // try to

[Rd] Cannot Compute Box's M (Three Days Trying...)

2017-10-27 Thread Morkus via R-devel
It can't be this hard, right? I really need a shove in the right direction here. Been spinning wheels for three days. Cannot get past the errors. I'm doing something wrong, obviously, since I can easily compute the Box's M right there in RStudio But I don't see what is wrong below with the codi

Re: [Rd] Slow down using the compiler

2017-10-27 Thread luke-tierney
This is due to a temporary change to not compile assignments, like your loop body, that appear within an argument. This is to work around a bug elsewhere in R that will take some time to fix. Once that fix is available these assignments will again be compiled. Best, On Fri, 27 Oct 2017, Colin Gi

Re: [Rd] Bug in model.matrix.default for higher-order interaction encoding when specific model terms are missing

2017-10-27 Thread Arie ten Cate
Hello Tyler, I want to bring to your attention the following document: "What happens if you omit the main effect in a regression model with an interaction?" (https://stats.idre.ucla.edu/stata/faq/what-happens-if-you-omit-the-main-effect-in-a-regression-model-with-an-interaction). This gives a use

Re: [Rd] How to do a "Box's M" Test with

2017-10-27 Thread Morkus via R-devel
Thanks for the ideas. I'll keep trying... Sent from [ProtonMail](https://protonmail.com), Swiss-based encrypted email. > Original Message > Subject: Re: [Rd] How to do a "Box's M" Test with > Local Time: October 27, 2017 8:50 AM > UTC Time: October 27, 2017 12:50 PM > From: murd

[Rd] Slow down using the compiler

2017-10-27 Thread Colin Gillespie
Dear All, In R 3.4.2 (Linux), the compiler seems to have regressed: $ R --vanilla g = function() { N = 1e7; ans = numeric(N) system.time({for (j in 1:N) ans[j] = 1}) } g() # user system elapsed # 4.272 0.000 4.272 g1 = compiler::cmpfun(g) g1() # user system elapsed # 4.232 0.004

Re: [Rd] How to do a "Box's M" Test with

2017-10-27 Thread Duncan Murdoch
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 REXPDo

[Rd] How to do a "Box's M" Test with

2017-10-27 Thread Morkus via R-devel
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), n

Re: [Rd] javareconf issue

2017-10-27 Thread Prof Brian Ripley
On 27/10/2017 04:13, rosseji wrote: Using a real name and a signature are regarded as polite here. Hi, Wasn't able to see a bug report on this issue yet... Hope I'm not doublng up. This is a problem on your system. Also, macOS issues should be reported to R-sig-mac ... and you should give

[Rd] javareconf issue

2017-10-27 Thread rosseji
Hi, Wasn't able to see a bug report on this issue yet... Hope I'm not doublng up. There seems to be little info around for what "R CMD javareconf" does but it has some deprecation errors seemingly. On running cmd in terminal: Java interpreter : /usr/bin/java Java version : 9 Java home pat