Skip to contents

When samples from the posterior distribution are obtained using tmbstan, only the model parameters can be accessed directly from the stanfit object (i.e., derived quantities such as par_B0 or M_a cannot be accessed directly). Accessing derived quantities must be done using the this function.

Usage

get_posterior2(object, posterior)

Arguments

object

A list specifying the AD object created using MakeADFun.

posterior

An rstan objected created using the tmbstan function.

Value

A data.frame.