[R] Fw: inconsistency in pbmclapply...

Bert Gunter bgunter@4567 @end|ng |rom gm@||@com
Tue Oct 16 17:21:23 CEST 2018


As I think you hve been told before, most attachments don't make it through
the mail server. Use ?dput instead to include data.

Also, post in plain text, not html.

Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Tue, Oct 16, 2018 at 8:03 AM akshay kulkarni <akshay_e4 using hotmail.com>
wrote:

> dear members,
>                              I am attaching the object LYGH as used in my
> expression with pbmclapply so that you can recreate the expression:
>
> LYG1 <- pbmclapply(LYGH, FUN = auto.arima, mc.cores = detectCores()
>
> very many thanks for your help and time.....
> yours sincerely,
> AKSHAY M KULKARNI
> ________________________________
> From: akshay kulkarni <akshay_e4 using hotmail.com>
> Sent: Tuesday, October 16, 2018 2:21 PM
> To: R help Mailing list
> Subject: Fw: inconsistency in pbmclapply...
>
>
> dear members,
>                          however, "ts must have more than one observation"
> error is only found for the first entry of LYG1 ( LYG1[[20]], LYG1[[200]],
> [[elided Hotmail spam]]
> ________________________________________
> From: R-help <r-help-bounces using r-project.org> on behalf of akshay kulkarni <
> akshay_e4 using hotmail.com>
> Sent: Tuesday, October 16, 2018 1:57 PM
> To: R help Mailing  list
> Subject: [R] inconsistency in pbmclapply...
>
> dear members,
>                              I am using parallel processing with
> pbmclapply. below is the code. LYG1[[1]] got from pbmclapply is not the
> same as LYG1[[1]] got from direct application of auto.arima. what may be
> wrong?
>
>               debug at <tmp>#20: LYG1 <- pbmclapply(LYGH, FUN =
> auto.arima, mc.cores = detectCores())
> Browse[2]>
>   |=========================================                   |  68%, ETA
> 00:21
> debug at <tmp>#21: LYG2 <- pbmclapply(LYGH, FUN = ets, mc.cores =
> detectCores())
> Browse[2]> LYG1[[1]]
> [1] "Error in ts(x) : 'ts' object must have one or more observations\n"
> attr(,"class")
> [1] "try-error"
> attr(,"condition")
> <simpleError in ts(x): 'ts' object must have one or more observations>
> Warning message:
> In pbmclapply(LYGH, FUN = auto.arima, mc.cores = detectCores()) :
>   scheduled cores encountered errors in user code
> Browse[2]> LYGH[[1]]
>  [1] 0.700000000 0.400000000 0.300000000 0.150000000 0.250000000
> 0.950000000
>  [7] 1.000000000 0.300000000 0.650000000 0.200000000 0.600000000
> 0.100000000
> [13] 0.001412873 1.550000000 0.150000000 0.300000000 0.450000000
> 0.350000000
> [19] 0.150000000 2.350000000 0.250000000 0.100000000 3.700000000
> 3.950000000
> [25] 3.050000000 0.900000000 0.400000000 1.050000000 1.100000000
> 1.950000000
> [31] 2.000000000 0.650000000 0.700000000 0.250000000 5.250000000
> 0.800000000
> [37] 0.001412873
> Browse[2]> auto.arima(LYGH[[1]])
> Series: LYGH[[1]]
> ARIMA(0,1,0)
>
> sigma^2 estimated as 2.303:  log likelihood=-66.1
> AIC=134.2   AICc=134.31   BIC=135.78
>
> very many thanks for your time and effort.....
> yours sincerely,
> AKSHAY M KULKARNI
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

	[[alternative HTML version deleted]]




More information about the R-help mailing list