Skip to contents

Model fitting

Fit the Dirichlet Process Mixture Model and draw posterior samples.

runModel()
Fit DPMM
posterior_dpmm()
Sample from DPMM
sumLogPostDens()
Sum-posterior-log-density
sampler_conditional_RW()
Conditional Random Walk Sampler
sampler_conditional_RW_block()
Conditional Block Random Walk Sampler

Prediction

Generate predictions from a fitted DPMM.

predict_dpmm_fit()
Predict from DPMM

Diagnostics and plotting

Visualise model fit, convergence, and pairwise relationships.

plot_alpha()
Diagnostic Plot
plot_dpmm_fit()
Plot Parameter Trace plots
plot_ggpairs()
Pairs Plot

Synthetic datasets

Example datasets used to demonstrate and test the package.

dataset_1
Synthetic dataset 1
dataset_2
Synthetic dataset 2
dataset_3
Synthetic dataset 3
dataset_4
Synthetic dataset 4
dataset_5
Synthetic dataset 5
dataset_6
Synthetic dataset 6