Insert measurement likelihood (with regression; discrete) code chunks into .bug model file
Source:R/write-model.R
insert_bugfile_chunk_reg_discrete_predictor_nonest_meas.Rd
Insert measurement likelihood (with regression; discrete) code chunks into .bug model file
Usage
insert_bugfile_chunk_reg_discrete_predictor_nonest_meas(
Mobs,
prior,
cause_list,
use_measurements = "BrS",
ppd = NULL,
use_jags = FALSE
)
Arguments
- Mobs
Measurement data in the form of
data_nplcm
- prior
Prior specification from
model_options
- cause_list
A list of latent status names (crucial for building templates; see
make_template()
)- use_measurements
"BrS", or "SS"
- ppd
Default is NULL; set to TRUE for posterior predictive checking
- use_jags
Default is FALSE; set to TRUE if want to use JAGS for model fitting.
See also
It is used in write_model_Reg_NoNest for constructing a .bug file along with specification of latent status regression (insert_bugfile_chunk_reg_etiology)