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

API stats for sparse data #598

Closed
gitjeff05 opened this issue Apr 16, 2020 · 4 comments
Closed

API stats for sparse data #598

gitjeff05 opened this issue Apr 16, 2020 · 4 comments

Comments

@gitjeff05
Copy link
Contributor

Since some state level statistics are sparse (e.g., current hospital/ICU admissions/ventilator), Some insights into the data that is captured and provided through the API would be helpful. Reading issue #555 made me think about this as it is somewhat related.

Using the sparse fields hospitalizedCurrently and hospitalizedCumulative as an example, the following stats could be used:

Out of 56 states/territories reporting:

  • 52 (93%) contain a cumulative or current hospitalization metric
  • 49 (88%) contain a cumulative or current hospitalization metric updated in the last 24 hrs
  • 19 (34%) contain both cumulative and current hospitalization metrics (16 have updated in last 24 hrs)

There are probably better ways to show/describe this. The same should be done for ICU/Ventilator data.

@schwartzadev
Copy link
Collaborator

I really like this idea, and I would suggest adding this type of info to the us-totals page.

One concern that comes to mind is the "x hrs ago" format...I don't think our current build system would support that without client JS. Regardless, I think this type of info is important and I'm sure we can figure something out.

@gitjeff05
Copy link
Contributor Author

Thanks for the feedback @schwartzadev. I think we could probably just use the "date" field from our API instead of "updated x hrs ago." This part could live on us-totals, however the relevant stats are no longer included in the US API, only states. I was thinking of putting it on the Our Data. Maybe under the caveats:

States are currently reporting two fundamentally unlike statistics...

Also, including a table for reference in case anyone is interested. Blue rows contain both metrics and are current. Orange rows show that at least one metric is out of date.

Cumulative/Current Hospitalizations Table

@stale
Copy link

stale bot commented May 1, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions!

@stale stale bot added the stale label May 1, 2020
@stale
Copy link

stale bot commented May 11, 2020

This issue has been closed because it was stale for 15 days, and there was no further activity on it for 10 days. You can feel free to re-open it if the issue is important, and label it as "not stale."

@stale stale bot closed this as completed May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants