Fit nested partially-latent class model with regression (low-level)
nplcm_fit_Reg_discrete_predictor_NoNest( data_nplcm, model_options, mcmc_options )
Cases are on top of controls in the rows of diagnostic
test results and the covariate matrix. This is assumed by
A list of model options: likelihood and prior.
A list of Markov chain Monte Carlo (MCMC) options.
This function prepares data, specifies hyperparameters in priors (true positive rates and etiology fractions), initializes the posterior sampling chain, writes the model file (for JAGS or WinBUGS with slight differences in syntax), and fits the model. Features:
no nested subclasses, i.e. conditional independence of multivariate measurements given disease class and covariates;
multiple BrS + multiple SS.
If running JAGS on windows, please go to control panel to add the directory to jags into ENVIRONMENTAL VARIABLE!
BUGS fit results.
write_model_NoReg for automatically generate
file; This present function store it in location:
Other model fitting functions:
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.