Skip to content

Add mean std#467

Open
TimCookCountyDS wants to merge 3 commits intomasterfrom
add_mean_std
Open

Add mean std#467
TimCookCountyDS wants to merge 3 commits intomasterfrom
add_mean_std

Conversation

@TimCookCountyDS
Copy link

Added mean and standard deviation to the gen_agg_stats function. This should close out issue #458 . See the comments I added to #458 for sanity checks in athena. (Writing those sanity checks really makes me think about @jeancochrane 's thoughts on unit and integration tests ).

Copy link
Member

@jeancochrane jeancochrane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the start here! Assuming this is all good, it's nice that this change is so simple. I'd like @wrridgeway to take a look at this too, since I suspect he has more experience with the metrics code than I do.

One high-level request: Can you flesh out the PR title so that it's more descriptive of the change? This is important because the PR title will become the title of the commit when we squash and merge this PR.

Also, I'm curious to get @wrridgeway's thoughts on the issue of null values that you raised in #458. It seems pretty strange to me, though I can't think of why your changes might introduce nulls.

sum_fns_list <- list(
min = \(x) min(x, na.rm = TRUE),
q25 = \(x) quantile(x, na.rm = TRUE, probs = 0.25),
mean = \(x) mean(x, na.rm = TRUE),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Question, non-blocking] I haven't spent much time with this metrics code, so I may just be lacking context here, but can you explain why we only want to add mean/SD metrics to the sum_fns_list and sum_sqft_fns_list, and not ys_fns_list or yoy_fns_list?

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.

2 participants