perturb.params: Create a list of perturbed parameters

View source: R/bayes.R

perturb.paramsR Documentation

Create a list of perturbed parameters

Description

Takes a baseline set of parameters and perturbs it to create a variety of starting points for maximum likelihood estimation or MCMC

Usage

perturb.params(base, alt, which, mult = FALSE, use.base = TRUE)

Arguments

base

a named list (or vector) of parameters

alt

a list of lists (or vectors) of alternative parameter values or multipliers

which

which parameters to perturb (currently unused)

mult

(logical) multiply baseline values rather than replacing them?

use.base

(logical) include baseline parameters in the list?

Details

Takes the baseline parameter list and substitutes alternative values.

Value

A list of named lists of parameters.

Note

To be extended.

Author(s)

Ben Bolker

Examples

perturb.params(list(x=1,y=2,z=3),alt=list(x=c(2,4),z=5))

emdbook documentation built on July 9, 2023, 6:33 p.m.