perturb.params | R Documentation |
Takes a baseline set of parameters and perturbs it to create a variety of starting points for maximum likelihood estimation or MCMC
perturb.params(base, alt, which, mult = FALSE, use.base = TRUE)
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? |
Takes the baseline parameter list and substitutes alternative values.
A list of named lists of parameters.
To be extended.
Ben Bolker
perturb.params(list(x=1,y=2,z=3),alt=list(x=c(2,4),z=5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.