Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom models #116

Open
4 tasks
lindeloev opened this issue Apr 5, 2021 · 0 comments
Open
4 tasks

Custom models #116

lindeloev opened this issue Apr 5, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@lindeloev
Copy link
Owner

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,

  • Add fields with "extra_data_params" to the custom family. Perhaps allow defining out-of-model inferred parameters using prior = list(new_param = "dnorm(...)") as a way to signal that it should be sampled.
  • Include "extra_data_params" in jags_data
  • Sample extra_inferred_params and show them in summary() and plot_pars() etc.
  • Perhaps provide an API to let users modify fit$.internal$formula_r instead of the full jags_code so that it can be used for plot(), fitted(), pp_check(), etc.
@lindeloev lindeloev added the enhancement New feature or request label Apr 5, 2021
@lindeloev lindeloev added this to the 0.5 Custom families milestone Apr 5, 2021
@lindeloev lindeloev changed the title Pass variables to JAGS for custom jags_code Custom models Apr 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant