extract_descriptives_stan: Extraction of descriptive statistics from a Stan object

View source: R/extract_descriptives_stan.R

extract_descriptives_stanR Documentation

Extraction of descriptive statistics from a Stan object

Description

This function takes a Stan object and extracts the descriptive statistics (mean and standard deviation) of the model parameters

Usage

extract_descriptives_stan(stan.object.base.modified, w, prec.name = NULL)

Arguments

stan.object.base.modified

A Stan object in matrix form with a column called ll, which contains the log-likelihood evaluated at MCMC sample of parameters

w

numeric, the weighting factor to weight the likelihood. For the base model w=1.

prec.name

NULL or character, specifies the names of parameters (in JAGS and INLA precisions but in Stan standard deviations) for transformation to the log-scale

Value

A descriptive matrix with two columns (mean and sd) and rows for all the parameters of the model

Author(s)

Malgorzata Roos, Georgios Kazantzidis, Sona Hunanyan,


hunansona/ed4bhm documentation built on June 15, 2022, 6:42 p.m.