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

Unifying stan files for models with and without seroreversion #219

Open
ntorresd opened this issue Sep 20, 2024 · 0 comments
Open

Unifying stan files for models with and without seroreversion #219

ntorresd opened this issue Sep 20, 2024 · 0 comments
Assignees

Comments

@ntorresd
Copy link
Member

We want to reduce the number of stan files in the package (./inst/stan/*.stan). This will facilitate adding additional models (like IID models) and (maybe) reduce compilation time of the package during installation.

The main differences between the models with and without seroreversion are:

  // prior index
  int seroreversion_prior_index;
  // seroreversion prior choices
  real<lower=0> seroreversion_min;
  real<lower=seroreversion_min> seroreversion_max;
  // normal
  real<lower=0> seroreversion_mean;
  real<lower=0> seroreversion_sd;
  • Declaration of the parameter seroreversion_rate in the parameters chunk:
parameters {
  ...
  real<lower=0> seroreversion_rate;
  ...
}
  • Evaluation of functions prob_infected_* seroreversion parameter, i.e. seroreversion_rate = 0 when is_seroreversion = FALSE in fit_seromodel()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants