Skip to content

Commit

Permalink
Merge pull request #87 from ukhsa-collaboration/fix_sii_tidyselect_wa…
Browse files Browse the repository at this point in the history
…rning

Added all_of when selecting from external grouping_variables vector i…
  • Loading branch information
PHEgeorginaanderson authored Dec 21, 2023
2 parents eb1d0f6 + 28a8af5 commit c4a4693
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: PHEindicatormethods
Type: Package
Version: 2.0.1.9004
Version: 2.0.1.9005
Title: Common Public Health Statistics and their Confidence Intervals
Description: Functions to calculate commonly used public health statistics and
their confidence intervals using methods approved for use in the production
Expand Down
4 changes: 2 additions & 2 deletions R/SII_function.R
Original file line number Diff line number Diff line change
Expand Up @@ -736,15 +736,15 @@ phe_sii <- function(data, quantile, population, # compulsory fields
}
)
) |>
select(grouping_variables, "CI_calcs")
select(all_of(grouping_variables), "CI_calcs")

# Add CIs to model
# join on dataset with SII/ RII confidence limits
# Get CIs from first round of reps
# Unnest confidence limits in a data frame for joining

CI_rep1 <- popsSII_model_CIs %>%
select(grouping_variables, "CI_calcs") %>%
select(all_of(grouping_variables), "CI_calcs") %>%
tidyr::unnest("CI_calcs") |>
slice_head(n = 1)

Expand Down

0 comments on commit c4a4693

Please sign in to comment.