drawpriors: Random draws from simmr prior distributions

Description Usage Arguments Details Value Author(s)

View source: R/drawpriors.R

Description

Random draws from simmr prior distributions

Usage

1
2
drawpriors(simmr_in, priorcontrol, ndraws = 50000, plot.priors = FALSE,
  cor.table = FALSE)

Arguments

simmr_in

A simmr_input object with the data for input to a simmr model

priorcontrol

A list with the means and standard deviations of the priors.

ndraws

A numeric giving the number of draws from the prior distributions.

plot.priors

A logical should the prior densities be plotted?

cor.table

A logical should a table of correlations among sources be printed?

Details

Newer isotope mixing models, including simmr, use logistic-normal transformations. So priorcontrol should give means and sds in normal space. If you want to specify priors as proportions see: simmr::simmr_elicit

Value

A data.frame of random draws from the priors.

Author(s)

Christopher J. Brown christo.j.brown@gmail.com


cbrown5/remixsiar documentation built on April 26, 2020, 12:40 a.m.