
This file folder includes the programs for calculating the LPML measures for model comparison under parametric and semiparametric fittings cocaine use data. i.e., Table 1 in Bayesian analysis of two-part nonlinear latent variable model: semiparametric method (statistical modeling). Among them,

1. The routines 'main1.c' to 'main4.c' with  PARA=1 are implemented to calcaulate LPML measures under parametric fitting.

2. The routines 'main1.c' to 'main4.c' with  PARA=0 are implemented to calcaulate LPML measures under semi-parametric fitting. 


3. The resulting results are respectively saved in the file folders 'PARA-LPML' and 'SEMI-LPML'.