Skip to content

Add prior for adding detection priors#60

Merged
TimothyWillard merged 1 commit intomainfrom
push-lrxywllurztr
Nov 12, 2025
Merged

Add prior for adding detection priors#60
TimothyWillard merged 1 commit intomainfrom
push-lrxywllurztr

Conversation

@TimothyWillard
Copy link
Collaborator

Added prior function and associated helpers/shortcuts for adding a parameterization to the detection rate priors to a severity estimate model.

  • Added SeverityEstimate::prior function to add beta distribution parameterizations for passive and active detection rates.
  • Added active_prior, passive_asymptomatic_prior, and passive_symptomatic_prior as light convenience wrappers for prior.
  • Added 'active_prior', 'passive_asymptomatic_prior', 'passive_symptomatic_prior' slots to SeverityEstimateModel class for holding these parametrizations. Represented as a numeric with names 'alpha' and 'beta'.
  • Added a check to the beta_parameterization function for bounds on the variance, 'var' or 'sd' with respect to the mean when using 'mean'/'var' or 'sd' parameterizations. Without this check this function could return negative values without error.

Closes #48.

Added `prior` function and associated helpers/shortcuts for adding a
parameterization to the detection rate priors to a severity estimate
model.

- Added `SeverityEstimate::prior` function to add beta distribution
  parameterizations for passive and active detection rates.
- Added `active_prior`, `passive_asymptomatic_prior`, and
  `passive_symptomatic_prior` as light convenience wrappers for `prior`.
- Added 'active_prior', 'passive_asymptomatic_prior',
  'passive_symptomatic_prior' slots to `SeverityEstimateModel` class for
  holding these parametrizations. Represented as a numeric with names
  'alpha' and 'beta'.
- Added a check to the `beta_parameterization` function for bounds on
  the variance, 'var' or 'sd' with respect to the mean when using
  'mean'/'var' or 'sd' parameterizations. Without this check this
  function could return negative values without error.

Closes #48.
@TimothyWillard TimothyWillard merged commit cf2b905 into main Nov 12, 2025
4 checks passed
@TimothyWillard TimothyWillard deleted the push-lrxywllurztr branch November 12, 2025 20:46
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

Successfully merging this pull request may close these issues.

Add specification for detection probability priors

1 participant