msParframe {dMod}R Documentation

Reproducibly construct "random" parframes

Description

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

Usage

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

msParframe(c(a = 0, b = 100000), 5)

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

[Package dMod version 1.0.2 Index]