InfluenzaStateHospitalization
adrio.cdc.InfluenzaStateHospitalization(self,
*,
=False,
fix_missing=True,
allow_voluntary )
Loads influenza hospitalization data from data.cdc.gov’s dataset named “Weekly United States Hospitalization Metrics by Jurisdiction, During Mandatory Reporting Period from August 1, 2020 to April 30, 2024, and for Data Reported Voluntarily Beginning May 1, 2024, National Healthcare Safety Network (NHSN) - ARCHIVED”.
The data were reported by healthcare facilities on a weekly basis to CDC’s National Healthcare Safety Network with reporting dates starting 2020-08-08 and ending 2024-10-26. The data were aggregated by CDC to the US State level. While reporting was initially federally required, beginning May 2024 reporting became entirely voluntary and as such may include fewer responses.
This ADRIO supports geo scopes at US State granularity. The data loaded will be matched to the simulation time frame. The result is a 2D matrix where the first axis represents reporting weeks during the time frame and the second axis is geo scope nodes. Values are tuples of date and the integer number of reported hospitalizations.
Parameters
fix_missing:
Fill
[np.int64] | int | Callable[[], int] | Literal[False] = False-
The method to use to fix missing values.
allow_voluntary: bool = True
-
Whether or not to accept voluntary data. If False and if the simulation time frame overlaps the voluntary period, such data will be masked. Set this to False if you want to be sure you are only using data during the required reporting period.
See Also
Attributes
result_format: ResultFormat[np.int64]
-
Information about the format of the ADRIO’s resulting data.
This is an abstract method.
Methods
Name | Description |
---|---|
estimate_data |
Estimate the data usage for this ADRIO in a RUME. |
with_context |
Constructs a clone of this instance which has access to the given context. |
inspect |
Produce an inspection of the ADRIO’s data for the current context. |
evaluate |
Evaluates the ADRIO in the current context. |