write_JAGS_model {MixSIAR} | R Documentation |
Write the JAGS model file
Description
write_JAGS_model
creates "MixSIAR_model.txt", which is passed to JAGS
by run_model
when the "RUN MODEL" button is clicked in the GUI.
Several model options will have already been specified when loading the mix
and source data, but here is where the error term options are selected:
Residual * Process (resid_err = TRUE, process_err = TRUE)
Residual only (resid_err = TRUE, process_err = FALSE)
Process only (resid_err = FALSE, process_err = TRUE)
Usage
write_JAGS_model(
filename = "MixSIAR_model.txt",
resid_err = TRUE,
process_err = TRUE,
mix,
source
)
Arguments
filename |
the JAGS model file is saved in the working directory as 'filename' (default is "MixSIAR_model.txt", but user can specify). |
resid_err |
T/F: include residual error in the model? |
process_err |
T/F: include process error in the model? |
mix |
output from |
source |
output from |
Details
WARNING messages are displayed if:
resid_err = FALSE and process_err = FALSE are both selected.
N=1 mix data point and did not choose "Process only" error model (MixSIR)
Fitting each individual mix data point separately as a Fixed Effect, but did not choose "Process only" error model (MixSIR).