Skip to content

Commit

Permalink
minor cvs tweak to address geometries
Browse files Browse the repository at this point in the history
  • Loading branch information
wcurrangroome committed Nov 11, 2024
1 parent 6a719da commit 0b42b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/calculate_cvs.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ se_proportion_ratio = function(
stop("Only one of a margin of error or a standard error can be provided for the numerator and denominator.")
}

!is.null(moe_numerator)
if (!is.null(moe_numerator)) { se_numerator = purrr::map_dbl(moe_numerator, se_simple) }
if (!is.null(moe_denominator)) { se_denominator = purrr::map_dbl(moe_denominator, se_simple) }

Expand Down Expand Up @@ -228,6 +227,7 @@ calculate_cvs = function(.df) {
!(calculated_variable %in% c("total_population_universe", "sex_by_age_universe", "race_universe")))

df_cvs = .df %>%
sf::st_drop_geometry() %>%
dplyr::mutate(
## derived sum variables - calculate MOEs that can be used in subsequent calculations
dplyr::across(
Expand Down

0 comments on commit 0b42b40

Please sign in to comment.