Description Usage Arguments Details Value See Also
View source: R/nplcm-fit-NoReg.R
Fit nested partially-latent class model (low-level)
1 | nplcm_fit_NoReg(data_nplcm, model_options, mcmc_options)
|
data_nplcm |
Must put cases at the top in 'Mobs$MBS' and control data at the bottom (this is related to the coding scheme in JAGS).
|
model_options |
A list of model options.
|
mcmc_options |
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 regression;
no nested
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 constructing .bug model file; This function
then put it in the folder mcmc_options$bugsmodel.dir
.
Other model fitting functions: nplcm_fit_Reg_NoNest
,
nplcm_fit_Reg_discrete_predictor_NoNest
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.