optimr | R Documentation |
bdm
model using maxium penalised densityExecute a Bayesian (MAP) model fit using rstan.
optimr(object, ...) ## S4 method for signature 'bdm' optimr(object, data = list(), run = character(), init = "random", ...)
Returns a bdm
object containing MAP estimates.
# get some data data(albio) dat <- bdmData(harvest = albio$catch, index = albio$cpue, time = rownames(albio)) # initialize and fit default model ## Not run: mdl <- bdm() mdl <- compiler(mdl) mdl <- optimr(mdl, dat) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.