
This file folder includes program for presenting the histograms of the number of clusters under semiparametric fitting with G=100 for cocaine use data. i.e. Fig. 5 in Bayesian analysis of two-part nonlinear latent variable model: semiparametric method (statistical modeling). Among them,
1. The routine 'main_SMI.c'is implemented to draw the number of clusters from the posterior.
2. The Matlab routine 'exam_cluster.m' is used to plot the histograms.
3. The figure 'NOHIST.fig' is the histograms of of the number of clusters under semi parametric fitting with G=100 for cocaine use data
