Re: [R] dependent nested for loops in R

2021-01-30 Thread David Winsemius
On 1/30/21 8:26 PM, Shaami wrote: Hi I have very large dependent nested for loops that are quite expensive computationally. It takes weeks and does not end to give me results. Could anyone please guide how could I use apply function or any other suggestion for such big and dependent loops in R?

[R] dependent nested for loops in R

2021-01-30 Thread Shaami
Hi I have very large dependent nested for loops that are quite expensive computationally. It takes weeks and does not end to give me results. Could anyone please guide how could I use apply function or any other suggestion for such big and dependent loops in R? A sample code is as follows. w = NUL

Re: [R] need help calculating the indicator function

2021-01-30 Thread Rui Barradas
Hello, Please cc the list, R-Help is threaded and your doubt and answers might be of interest to others. With a vector Y, you want 0 in all Y != l and 1 in all Y == l? n_l <- function(Y, l) as.integer(Y == l) Hope this helps, Rui Barradas Às 11:26 de 30/01/21, Ablaye Ngalaba escreveu: H

Re: [R] arima/fixed

2021-01-30 Thread Martin Maechler
> Rolf Turner > on Sat, 30 Jan 2021 16:11:32 +1300 writes: > On Fri, 29 Jan 2021 12:47:25 + > Nasia Petsa wrote: >> Dear all, >> >> I have the following problem with determining the argument fixed in >> arima function. What is the length of argument fix

[R] [R-pkgs] sensobol 1.0.0. (variance-based sensitivity analysis)

2021-01-30 Thread Protonmail via R-packages
sensobol: an R package to compute variance-based sensitivity indices Sensobol 1.0.0 is already in CRAN, and a detailed vignette can be found in CRAN and in arXiv: https://arxiv.org/abs/2101.10103 It allows to rapidly compute, bootstrap and plot up to third-order Sobol'-based sensitivity indices