extract_descriptives_mbp_stan: Extraction of descriptive statistics from a Stan object for...

View source: R/extract_descriptives_mbp_stan.R

extract_descriptives_mbp_stanR Documentation

Extraction of descriptive statistics from a Stan object for base and weighted models

Description

This function applies weighting to the stan.object.base.modified

Usage

extract_descriptives_mbp_stan(stan.object.base.modified, prec.name, delta)

Arguments

stan.object.base.modified

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

prec.name

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

delta

numeric, numerical differentiation step, the weighting factor w = 1 \pm δ, the default value is 0.01.

Value

A list of the descriptive matrix (means and sds for minus, base, plus models) and the delta

Author(s)

Malgorzata Roos, Georgios Kazantzidis, Sona Hunanyan,


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