add_noise_func: Adds observation error

Description Usage Arguments Value Examples

View source: R/model.R

Description

Adds random noise to a given value, based on the shouldered observation error distribution.

Usage

1
add_noise_func(x, params)

Arguments

x

the value to be perturbed

params

vector of parameters for the observation error matrix. params[1] should be the value for S, and params[2] should be the value for EA. Params[3] should be the maximum observable titre.

Value

returns the given value with added observation error

Examples

1
add_noise_func(5, c(0.79,0.2,15))

jameshay218/serosim2 documentation built on Nov. 29, 2017, 6:21 p.m.