Hi,

I am running analyses in R including some loops (i.a. for a sliding window in time-series analysis and a resample-based non-parametric test). The self-written code does exactly what I wanted it to do, but it is lazy and the analyses are computationally demanding. So my problem is the computing time.

To speed up the analyses I would like to parallelize the computations. For example, there is a for-loop that repeats the analysis for each case (patient) consecutively. I wonder if it is possible to run those computations per patient parallel by using different cores of the CPU (currently, I am using an i7).

I found some approaches online, but all of them where (a) not suitable for windows or (b) not related to R or (c) I just did not understand them.

Do you know some R code/ functions or something else, which is more or less easy to implement (without being a computer scientist or mathematician) and could be helpful for solving my problem?

Best,

Brian

Similar questions and discussions