get_samples: Use JAGS to get simulations from posterior

Description Usage Arguments Value

View source: R/get_samples.R

Description

Given data and a prior distribution, this function gives back samples from the posterior distribution.

Usage

1
get_samples(df, prior, n_iter = 2500)

Arguments

df

Data frame containing the data

prior

A list of prior parameters.

n_iter

Number of iterations in MCMC.

d_star

A vector of reference levels. Length 2.

Value

A list, containing samples from the posterior distribution.


dominicmagirr/dosecombo documentation built on May 6, 2019, 4:32 p.m.