You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great package. I've recently upgraded from 1.1.2 to 1.1.3 and it has broken some of my existing code (in another package I've written). After tracking down the issue, it seems that roll_sd is returning 0 if the values and weights are too small. This was not a problem in 1.1.2.
Here's a minimal reproducible example.
library(roll)
getNamespaceVersion("roll") # 1.1.2
set.seed(42)
x <- matrix(runif(100)) / 1000
width <- 10
x_sd_large_wts_112 <- roll_sd(x, width = width, weights = rep(1, width))
x_sd_small_wts_112 <- roll_sd(x, width = width, weights = rep(0.01, width))
all.equal(x_sd_large_wts_112, x_sd_small_wts_112) # TRUE
tail(x_sd_large_wts_112) # some small numbers
tail(x_sd_small_wts_112) # some small numbers
Hi Jason,
Thanks for the great package. I've recently upgraded from 1.1.2 to 1.1.3 and it has broken some of my existing code (in another package I've written). After tracking down the issue, it seems that roll_sd is returning 0 if the values and weights are too small. This was not a problem in 1.1.2.
Here's a minimal reproducible example.
After upgrading to the new release,
Thanks for looking into this!
The text was updated successfully, but these errors were encountered: