View source: R/extract_descriptives_stan.R
extract_descriptives_stan | R Documentation |
This function takes a Stan object and extracts the descriptive statistics (mean and standard deviation) of the model parameters
extract_descriptives_stan(stan.object.base.modified, w, prec.name = NULL)
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 |
A descriptive matrix with two columns (mean and sd) and rows for all the parameters of the model
Malgorzata Roos, Georgios Kazantzidis, Sona Hunanyan,
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.