extract_param: Extract the Bayesian samples for a Gaussian mixture model...

View source: R/bayesian_inference_functions.R

extract_paramR Documentation

Extract the Bayesian samples for a Gaussian mixture model generated by sample_theta

Description

The input fit is the result of a call to stan by sample_theta, of class stanfit. Return a matrix TH with dimensions S x (3*K), where S is the number of samples (across all chains, and excluding warmup), and K is the number of mixtures.

Usage

extract_param(fit)

Arguments

fit

The fit from stan, of class stanfit

Value

A matrix of samples with dimensions S by (3*K), where S is the number of non-warmup samples


eehh-stanford/baydem documentation built on June 3, 2024, 5:46 p.m.