msParframe: Reproducibly construct "random" parframes

View source: R/statistics.R

msParframeR 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,
  keepfirst = TRUE,
  ...
)

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...

keepfirst

boolean, if set to TRUE the first row of the parframe will be the pars

...

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))

dkaschek/dMod documentation built on March 1, 2025, 9:04 p.m.