simulate_characteristic: Simulate time-course characteristic

Description Usage Arguments Value

View source: R/simulation.R

Description

Underlying function for simulating maximum concentration, relative changes in concentration and relative standard deviations. Each simulation can be performed with one or a mixture of two underlying distributions.

Usage

1
2
simulate_characteristic(n, dist1, par1, dist2 = NULL, par2 = NULL,
  p = 0.5, con = NULL)

Arguments

n

Number of samples to draw.

dist1

Distribution function for the first distribution e.g. rnorm

par1

A list of parameters for the first distribution (to be passed into dist1 using do.call).

dist2

Optional distribution function for the second distribution. Note, par2 has to be specified if dist2 is specified.

par2

An optional list of parameters for the second distribution. Note, dist2 has to be specified if par2 is specified.

p

Proportion of samples to draw using dist1 vs. dist2. Note, p is ignored if dist2 or par2 is not specified.

con

Optional vector of lower and upper constraints on generated samples.

Value

A vector of randomly generated values.


ssokolen/metcourse documentation built on May 30, 2019, 8:43 a.m.