nplcm_fit_Reg_Nest | R Documentation |
Called by nplcm()
upon being assigned to this nested regression by
assign_model()
nplcm_fit_Reg_Nest(data_nplcm, model_options, mcmc_options)
data_nplcm |
Cases are on top of controls in the rows of diagnostic
test results and the covariate matrix. This is assumed by
|
model_options |
A list of model options: likelihood and prior.
|
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
), and fits the model. Features:
regression (not all discrete covariates);
nested subclasses, i.e. conditional dependence of multivariate measurements given disease class and covariates;
multiple BrS + multiple SS.
BUGS fit results.
write_model_Reg_Nest for constructing .bug
model file; This function
then put it in the folder mcmc_options$bugsmodel.dir
.
Other model fitting functions:
nplcm_fit_NoReg()
,
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.