Re: [R] Help in Coding

2020-10-13 Thread Jeff Newmiller
1) If you get help on this mailing list, it will generally be from someone like yourself... not an "administrator". 2) You desperately need to learn how to send your emails to this list in plain text format... See [1] to see how WE see your html-formatted email run through a blender. Sending in

[R] Help in Coding

2020-10-13 Thread Faheem Jan via R-help
Good morning dear administrators, Please help me to code this code in R. I working in the multivariate time series data, know my objective is that to one year forecast of the hourly time series data, using first five as a training set and the remaining one year as validation. For this  I transf

Re: [R] Please need help to finalize my code

2020-10-13 Thread Richard O'Keefe
What do you *mean* "when you want to use the kernels". WHICH kernels? Use to do WHAT? In your browser, visit cran.r-project.org then select "Packages" from the list on the left. Then pick the alphabetic list. Now search for 'kernel'. You will find dozens of matches. On Wed, 14 Oct 2020 at 05:15, P

Re: [R] exiting mclapply early on error

2020-10-13 Thread Bert Gunter
This may be O/T. If so, either reply privately or not at all. "objective function diverges to infinity." How do you operationally define that? Detecting Inf -- e.g. 1/0, log(0), etc -- is straightforward. But how do you know other than via math whether iterations will continue to diverge or not?

Re: [R] Please need help to finalize my code

2020-10-13 Thread PIKAL Petr
Hm. Google tells me that kernel function is in stats package which comes with base installation and is invoked when you start R. search() [1] ".GlobalEnv""package:stats" "package:graphics" [4] "package:grDevices" "package:utils" "package:datasets" [7] "package:methods" "

Re: [R] Please need help to finalize my code

2020-10-13 Thread PIKAL Petr
Hi. Maybe you will get better answers, but from your code it seems to me that you are treating R as C or other similar language which is not optimal. Considering your first 9 lines, it could be changed either to CenteringV <- function(X, Ms, n) X-Ms or you probably could use functions sweep or

Re: [R] exiting mclapply early on error

2020-10-13 Thread Giovanni Righi
Thanks for the response, Jeremie. I wholeheartedly agree about testing. In my case, this feature would be used purely to reduce computation time. I’m calculating an expensive (and embarrassingly parallel) likelihood function, and for some parameter combinations my objective function diverges to

Re: [R] help for R code

2020-10-13 Thread Eric Berger
Hi Ablaye, The CRAN repository has thousands of available R packages. To help people find relevant packages amid such a huge collection, there are some 'task view' pages that group packages according to a particular task. I am guessing that you are interested in kernels because of their use in mach

[R] help for R code

2020-10-13 Thread Ablaye Ngalaba
Good morning dear administrators, Please help me to code this code in R. I use in this file the redescription function Φ which by making a scalar product gives a . You can also choose instead of the redescription function Φ a kernel k(x,x). Sincerely [[alternative HTM