-
Notifications
You must be signed in to change notification settings - Fork 151
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
Make census counts inclusive over the relevant lengths of stay #386
Conversation
This removes the abstraction of the enumerated dispositions in the census calculation, instead baking in the specific categories. That may be undesirable. This also changes the model fits, and hence the 'right' values in the tests. I've not checked them, nor am I particularly qualified to actually update them. Perhaps the primary tests should be written in terms of the time and height of the forecast peaks, so that there's at least some consistency over time, and we have a clear understanding of what it means when we change a value in the test suite. |
In the computation of |
Yes, yes it should. |
That makes the test failure numbers much closer than they were before, which is heartening. |
@PhilMiller Finally had time to start to look at this. Noticed that last line in admits_df not getting filled in this branch. There's an off by 1 difference between develop and this branch in
Unfortunately, tests still fail. I'll try to look more closely tomorrow. |
@PhilMiller I think there are two issues. 1) The off by 1 error I mentioned in previous comment is what is causing the admits to not match. I'm running tests on individual data Series equality to find this. When using
|
Thanks for the catch on the off-by-one error. I'll patch that up later today. As for the substantive forecast accuracy, we need more input from the hospital people with access to real data, and maybe from UX folks on guiding users to give inputs that will generate output they'll interpret correctly. |
Agree. If user interprets the input ALOS's correctly, it's all good. One thought I had to help users, and I'm working on this right now, is to compute the implied volumes and ALOS's for the subpops of (1) hospital admits who never used ICU and (2) ICU patients who never used vents. Simple computations and just provides user more feedback on the implications of the rate and ALOS values they entered which might help them better calibrate their inputs. |
Fixes: #385