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

Consider returning median output type from linear_pool() #108

Open
eahowerton opened this issue Apr 21, 2024 · 1 comment
Open

Consider returning median output type from linear_pool() #108

eahowerton opened this issue Apr 21, 2024 · 1 comment

Comments

@eahowerton
Copy link
Contributor

In the hubEnsembles manuscript, we have a plot of quantile average and linear pool ensembles from the incident example data (Figure 5), where the median values are used as the point estimate. However, linear_pool() doesn't return results for median output type (I think), so I ended up having to add this clunky few lines of code, where I pull output_type_id == 0.5, rename the output_type to "median" and append it to the end of the linear_pool results.

model_output_plot <- linear_pool_ens |>
  dplyr::filter(output_type_id == 0.5, target == "wk inc flu hosp") |>
  dplyr::mutate(output_type = "median", output_type_id = NA)
model_output_plot <- dplyr::bind_rows(linear_pool_ens, model_output_plot)
@eahowerton
Copy link
Contributor Author

Noting this is related to Infectious-Disease-Modeling-Hubs/hubData#26

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

1 participant