As raised in #115, #107, and elsewhere, users increasingly modify the jags_code generated by mcp but get stuck when introducing new variables. We should make it easier to do this. Maybe it will fit neatly into the custom families (#101) planned for v0.5,
As raised in #115, #107, and elsewhere, users increasingly modify the
jags_codegenerated bymcpbut get stuck when introducing new variables. We should make it easier to do this. Maybe it will fit neatly into the custom families (#101) planned for v0.5,prior = list(new_param = "dnorm(...)")as a way to signal that it should be sampled.jags_dataextra_inferred_paramsand show them insummary()andplot_pars()etc.fit$.internal$formula_rinstead of the fulljags_codeso that it can be used forplot(),fitted(),pp_check(), etc.