sample_theta
R/bayesian_inference_functions.R
extract_param.Rd
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.
extract_param(fit)
fit | The fit from stan, of class stanfit |
---|
A matrix of samples with dimensions S by (3*K), where S is the number of non-warmup samples