get_theta: A helper function to get a vector of parameters from a fitted...

Description Usage Arguments

View source: R/get_theta.R

Description

A helper function to get a vector of parameters from a fitted object

Usage

1

Arguments

fit

fitted runjags object with summary included

type

An integer will select the draw from the posterior (e.g. type = 5 will return the vector of parameters in the 5th sample from the posterior, mcmc chains are concatenated) A charactor vector can be used to the parameters based on summarary statistics like quantiles and moments. Supported values so far "median" and "mean". If type is "marginal" or "all" then all draws are returned.


sustainablefarms/linking-data documentation built on Oct. 28, 2020, 2:41 a.m.