CountyDeaths

adrio.cdc.CountyDeaths(
    self,
    cause_of_death,
    *,
    fix_redacted=False,
    fix_missing=False,
)

Loads COVID and total deaths data from data.cdc.gov’s dataset named “AH COVID-19 Death Counts by County and Week, 2020-present”.

The data were reported starting 2020-01-04 and ending 2023-04-01, and aggregated by CDC to the US County level.

This ADRIO supports geo scopes at US State and County granularity (2014 through 2019 allowed). 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 deaths.

NOTE: this data source uses non-standard geography for two county-equivalents. In Alaska, 02270 was the Wade Hampton Census Area prior to 2015 and thereafter renamed Kusilvak Census Area with code 02158. And in South Dakota, 46113 was Shannon County prior to 2015 and thereafter renamed Oglala Lakota County with code 46102. These data are inaccessible via this ADRIO unless you use 2014 geography.

Parameters

cause_of_death: Literal['all', 'COVID-19']

The cause of death.

fix_redacted: Fill[np.int64] | int | Callable[[], int] | Literal[False] = False

The method to use to fix redacted values.

fix_missing: Fill[np.int64] | int | Callable[[], int] | Literal[False] = False

The method to use to fix missing values.

See Also

The dataset documentation.

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.