pearl.definitions
Global Definitions for Codes used across PEARL.
Module Attributes
Dictionary defining the data types for each column in the population DataFrame. |
|
ART Naive status code 0. |
|
ART Delayed status code 1. |
|
ART User status code 2. |
|
ART Non-user status code 3. |
|
ART Reengaged status code 4. |
|
LTFU status code 5. |
|
ART Dying User status code 6. |
|
ART Dying Non-user status code 7. |
|
ART Dead User status code 8. |
|
ART Dead Non-user status code 9. |
|
Smearing correction factor for log-normal distributions. |
|
List of comorbidities in stage 0. |
|
List of comorbidities in stage 1. |
|
List of comorbidities in stage 2. |
|
List of comorbidities in stage 3. |
|
List of all comorbidities. |
- pearl.definitions.POPULATION_TYPE_DICT = {'age': 'int8', 'age_cat': 'int8', 'anx': 'bool', 'ckd': 'bool', 'dm': 'bool', 'dpr': 'bool', 'esld': 'bool', 'h1yy': 'int16', 'hcv': 'bool', 'ht': 'bool', 'init_age': 'int8', 'intercept': 'int8', 'last_h1yy': 'int16', 'lipid': 'bool', 'ltfu_year': 'int16', 'malig': 'bool', 'mi': 'bool', 'mm': 'int8', 'n_lost': 'int32', 'return_year': 'int16', 'smoking': 'bool', 'sqrtcd4n_exit': 'float64', 'status': 'int8', 't_anx': 'int16', 't_ckd': 'int16', 't_dm': 'int16', 't_dpr': 'int16', 't_esld': 'int16', 't_hcv': 'int16', 't_ht': 'int16', 't_lipid': 'int16', 't_malig': 'int16', 't_mi': 'int16', 't_smoking': 'int16', 'year': 'int16', 'years_out': 'int16'}
Dictionary defining the data types for each column in the population DataFrame.
- pearl.definitions.SMEARING = 1.42
Smearing correction factor for log-normal distributions.
- Type:
- pearl.definitions.STAGE2 = ['ckd', 'lipid', 'dm', 'ht']
List of comorbidities in stage 2.
- Type:
List[str]