Skip to content

Commit

Permalink
Pass aggregation correct value name
Browse files Browse the repository at this point in the history
  • Loading branch information
wrridgeway committed Feb 13, 2024
1 parent 189657c commit 0413f1c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pipeline/02-assess.R
Original file line number Diff line number Diff line change
Expand Up @@ -92,14 +92,14 @@ assessment_data_bldg <- assessment_data_pred %>%
# value for said building's 'livable' units.
mutate(
bldg_total_value = sum(
ifelse(meta_modeling_group == "CONDO", pred_pin_final_fmv, 0),
ifelse(meta_modeling_group == "CONDO", pred_card_initial_fmv, 0),
na.rm = TRUE
),
bldg_total_proration_rate = sum(
ifelse(meta_modeling_group == "CONDO", meta_tieback_proration_rate, 0),
na.rm = TRUE
),
pred_pin_final_fmv = bldg_total_value *
pred_card_initial_fmv = bldg_total_value *
(meta_tieback_proration_rate / bldg_total_proration_rate),

# For certain units (common areas), we want to have a consistent low value
Expand All @@ -110,7 +110,7 @@ assessment_data_bldg <- assessment_data_pred %>%
meta_mailed_tot * 10,
meta_modeling_group == "NONLIVABLE" &
is.na(meta_mailed_tot) ~ 10,
TRUE ~ pred_pin_final_fmv
TRUE ~ pred_card_initial_fmv
)
) %>%
ungroup()
Expand Down

0 comments on commit 0413f1c

Please sign in to comment.