msParframe: Reproducibly construct "random" parframes

Description Usage Arguments Value See Also Examples

View source: R/statistics.R

Description

The output of this function can be used for the center - argument of mstrust

Usage

1
msParframe(pars, n = 20, seed = 12345, samplefun = stats::rnorm, ...)

Arguments

pars

Named vector. If samplefun has a "mean"-argument, values of pars will used as mean

n

Integer how many lines should the parframe have

seed

Seed for the random number generator

samplefun

random number generator: rnorm, runif, etc...

...

arguments going to samplefun

Value

parframe (without metanames)

See Also

mstrust and parframe

Examples

1
2
3
4
msParframe(c(a = 0, b = 100000), 5)

# Parameter specific sigma
msParframe(c(a = 0, b = 100000), 5, samplefun = rnorm, sd = c(100, 0.5))

dMod documentation built on Jan. 27, 2021, 1:07 a.m.