Input Components¶
These are all of the inputs that are pulled for a model run. Some may not be pulled depending on the settings (for example, some models don’t have cause-specific mortality data).
Crosswalk Version¶
-
class
cascade_at.inputs.data.
CrosswalkVersion
(crosswalk_version_id, exclude_outliers, demographics, conn_def, gbd_round_id)[source]¶ Bases:
cascade_at.inputs.base_input.BaseInput
Pulls and formats all of the data from a crosswalk version in the epi database.
- Parameters
crosswalk_version_id (
int
) – The crosswalk version to pull fromexclude_outliers (
bool
) – whether to exclude outliersconn_def (
str
) – database connection definitiongbd_round_id (
int
) – The GBD rounddemographics (
Demographics
) – The demographics object
-
get_raw
()[source]¶ Pulls the raw crosswalk version from the database. These are the observations that will be used in the bundle.
-
configure_for_dismod
(relabel_incidence, measures_to_exclude=None)[source]¶ Configures the crosswalk version for DisMod.
- Parameters
measures_to_exclude (
Optional
[List
[str
]]) – list of parameters to exclude, by namerelabel_incidence (
int
) – how to label incidence – see RELABEL_INCIDENCE_MAP
- Return type
DataFrame
Cause-Specific Mortality Rate¶
-
class
cascade_at.inputs.csmr.
CSMR
(cause_id, demographics, decomp_step, gbd_round_id)[source]¶ Bases:
cascade_at.inputs.base_input.BaseInput
Get cause-specific mortality rate for demographic groups from a specific CodCorrect output version.
- Parameters
cause_id (
int
) – The GBD cause of death to pull mortality fromdemographics (
Demographics
) –decomp_step (
str
) –gbd_round_id (
int
) –
All-Cause Mortality Rate¶
-
class
cascade_at.inputs.asdr.
ASDR
(demographics, decomp_step, gbd_round_id)[source]¶ Bases:
cascade_at.inputs.base_input.BaseInput
Gets age-specific all-cause death rate for all demographic groups.
- Parameters
demographics (
Demographics
) –decomp_step (
str
) –gbd_round_id (
int
) –
Population¶
-
class
cascade_at.inputs.population.
Population
(demographics, decomp_step, gbd_round_id)[source]¶ Bases:
cascade_at.inputs.base_input.BaseInput
Gets population for all demographic groups. This is not and input for DisMod-AT (and therefore does not subclass BaseInput. It is just used to do covariate interpolation over non-standard age groups and years.
- Parameters
demographics (
Demographics
) – A demographics objectdecomp_step (
str
) – The decomp stepgbd_round_id (
int
) – The gbd round