add_noise | R Documentation |
Add noise / residual error to data
add_noise(x, ruv = list(proportional = 0, additive = 0, exponential = 0))
x |
data |
ruv |
list describing the magnitude of errors. List arguments: "proportional", "additive", "exponential". |
library(dplyr)
ipred <- c(10, 8, 6, 4, 2, 0) %>% add_noise(ruv = list(proportional = 0.1, additive = 0.2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.