add_noise: Add noise / residual error to data

Description Usage Arguments Examples

View source: R/add_noise.R

Description

Add noise / residual error to data

Usage

1
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

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

vpc documentation built on Jan. 16, 2021, 5:44 p.m.