insert_bugfile_chunk_reg_nest_meas {baker} | R Documentation |
Insert measurement likelihood (nested model+regression) code chunks into .bug model file
Description
Insert measurement likelihood (nested model+regression) code chunks into .bug model file
Usage
insert_bugfile_chunk_reg_nest_meas(
Mobs,
prior,
cause_list,
FPR_formula,
use_measurements = "BrS",
ppd = NULL,
use_jags = FALSE
)
Arguments
Mobs |
Measurement data in the form of |
prior |
Prior specification from |
cause_list |
A list of latent status names (crucial for building templates;
see |
FPR_formula |
A list of FPR regression formula; check |
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. |
Value
A long character string to be inserted into .bug model file as measurement likelihood
See Also
Called by write_model_Reg_NoNest for constructing a .bug
file.
This is usually called along with specification of latent status regression
(insert_bugfile_chunk_reg_etiology).
[Package baker version 1.0.3 Index]