Re: [R] PSOCK cluster and renice

2018-02-11 Thread Henrik Bengtsson
As a follow up, future 1.7.0 was just released on CRAN allowing you specify 'renice' as expected. Example (skip 'dryrun = TRUE' for actually usage): > cl <- future::makeClusterPSOCK(2L, renice = 19, dryrun = TRUE) -- Manually

Re: [R] Hausman test

2018-02-11 Thread PAOLO PILI
you are right about the 3rd line but it doesn't help me for my problem. I remove the 3rd line but there is still the same problem: Error in solve.default (dvcov): the system is numerically unique: reciprocity condition value = 1.63418e-19 Paolo 2018-02-11 16:54 GMT+01:00 Bert Gunter

Re: [R] Parallel assignments and goto

2018-02-11 Thread Thomas Mailund
I admit I didn’t know about Recall, but you are right, there is no direct support for this tail-recursion optimisation. For good reasons — it would break a lot of NSE. I am not attempting to solve tail-recursion optimisation for all cases. That wouldn’t work by just rewriting functions. It

[R] Hausman test

2018-02-11 Thread PAOLO PILI
Hello, I have a problem with Hausman test. I am performing my analysis with these commands: > library(plm) > data<-read.csv2("paolo.csv",header=TRUE) > data< pdata.frame(data,index=c("FIRM","YEAR"),drop.index=TRUE,row.names=TRUE) >

Re: [R] Hausman test

2018-02-11 Thread Bert Gunter
Note the typo in your 3rd line: data < Don't know if this means anything... Bert On Feb 11, 2018 7:33 AM, "PAOLO PILI" wrote: > Hello, > > I have a problem with Hausman test. I am performing my analysis with these > commands: > > > library(plm) > >

Re: [R] Hausman test

2018-02-11 Thread David Winsemius
> On Feb 11, 2018, at 8:29 AM, PAOLO PILI wrote: > > you are right about the 3rd line but it doesn't help me for my problem. I > remove the 3rd line but there is still the same problem: > > Error in solve.default (dvcov): > the system is numerically unique:

Re: [R] Parallel assignments and goto

2018-02-11 Thread David Winsemius
> On Feb 11, 2018, at 7:48 AM, Thomas Mailund wrote: > > Hi guys, > > I am working on some code for automatically translating recursive functions > into looping functions to implemented tail-recursion optimisations. See > https://github.com/mailund/tailr > > As a

[R] Parallel assignments and goto

2018-02-11 Thread Thomas Mailund
Hi guys, I am working on some code for automatically translating recursive functions into looping functions to implemented tail-recursion optimisations. See https://github.com/mailund/tailr As a toy-example, consider the factorial function factorial <- function(n, acc = 1) { if (n <= 1)

Re: [R] plotting the regression coefficients

2018-02-11 Thread PIKAL Petr
Hi Maybe there are other ways but I would split data to several chunks e.g. in list and use for cycle to fill multipage pdf. With the toy data something like library(reshape2) library(ggplot2) temp <- melt(temp) temp.s<-split(temp, cut(1:nrow(temp), 2)) pdf("temp.pdf") for (i in 1:

Re: [R] plotting the regression coefficients

2018-02-11 Thread greg holly
Hi Petr; Thanks so much. This is great! Although last Sunday, alternatively, I have solved the problem using the following statement at the very end of the program. * ggsave('circle.pdf', p4, height = 70, width = 8, device=pdf, limitsize = F, dpi=300).* This works very well too. Asa my

Re: [R-es] Resumen de R-help-es, Vol 108, Envío 11

2018-02-11 Thread Andrés Hirigoyen
Gracias, pruebo ambas opciones. Un saludo El 11 de febrero de 2018, 08:00, escribió: > Envíe los mensajes para la lista R-help-es a > r-help-es@r-project.org > > Para subscribirse o anular su subscripción a través de la WEB >