add_noise: Add noise / residual error to data

View source: R/add_noise.R

add_noiseR Documentation

Add noise / residual error to data

Description

Add noise / residual error to data

Usage

add_noise(x, ruv = list(proportional = 0, additive = 0, exponential = 0))

Arguments

x

data

ruv

list describing the magnitude of errors. List arguments: "proportional", "additive", "exponential".

Examples

library(dplyr)
ipred <- c(10, 8, 6, 4, 2, 0) %>% add_noise(ruv = list(proportional = 0.1, additive = 0.2))

ronkeizer/vpc documentation built on May 11, 2023, 11:09 p.m.