extract_median_95CrI_descriptives_stan: Extraction of the median and the equi-tailed 95% CrI from a...

View source: R/extract_median_95CrI_descriptives_stan.R

extract_median_95CrI_descriptives_stanR Documentation

Extraction of the median and the equi-tailed 95% CrI from a Stan object

Description

This function takes a Stan object as input and extracts the median and the equi-tailed 95% CrI of all the model parameters (without random effects).

Usage

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

Arguments

stan.object.base.modified

character string, the name of the Stan object fitted in rstan

w

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

prec.name

character string, the name of the precision parameter to be used for logarithmic transformation of the marginal posterior samples of the precision parameter.

Details

The returned matrix has three columns with names "0.025quant", "0.5quant" and "0.975quant" for the median and the equi-tailed 95% CrI of the marginal posterior distributions and has as many rows as there are parameters (without random effects) in the model.

Value

numerical matix

See Also

rstan


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