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

more flexible NA handling when adjusted estimation #108

Merged
merged 3 commits into from
May 3, 2024

Conversation

chanshing
Copy link
Member

@chanshing chanshing commented May 3, 2024

Set a min wear criteria in aggregation: Instead of setting to NA when any NA, allow for some missingness. Defaults:

  • Up to 30s/min missing when calculating minutely
  • Up to 10min/h missing when calculating hourly
  • Up to 3h/d missing when calculating daily

For example, if day has 4h missing data, that day's step and walk will be NA.
Crude (unadjusted) values will still always report the agg for that day.

For cadence (peak1, peak30, 95th):

  • At least 10min in the day to calculate peak1 and 95th, otherwise set to NA for that day
  • At least 30min in the day to calculate peak30, otherwise set to NA for that day

chanshing added 3 commits May 3, 2024 18:41
Set a min wear criteria in aggregation: Instead of setting to NA when any NA, allow for some missingness. Defaults:
- Up to 30s/min missing when calculating minutely
- Up to 10min/h missing when calculating hourly
- Up to 3h/d missing when calculating daily

For example, if day has 4h missing data, that day's step and walk will be NA.
Crude (unadjusted) values will still always report the agg for that day.
@chanshing chanshing merged commit 5ec6c1a into main May 3, 2024
9 checks passed
@chanshing chanshing deleted the tweak-adjusted-calcs branch May 3, 2024 20:04
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.

1 participant