Framingham Simulation Model
Submodules
models.framingham.model_fr module
Represents a class for calculating the probability of having a cardiovascular event in the next 10 years using the Framingham risk function.
Attributes: - function_name (str): The name of the function. - file_path (str): The file path for the function. - interpretation (str): The interpretation of the function. - title (str): The title of the probability calculation. - intervals (list): A list of RiskInterval objects representing the risk intervals. - parameters (dict): A dictionary of parameters required for the calculation, including sex, age, coltot, hdl, tas, tad, smoke, and diab.
- class biomodel.models.framingham.model_fr.Framingham
Bases:
RFunction
Represents a class for calculating the probability of having a cardiovascular event in the next 10 years using the Framingham risk function.
- Attributes:
function_name (str): The name of the function. file_path (str): The file path for the function. interpretation (str): The interpretation of the function. title (str): The title of the probability calculation. intervals (list): A list of RiskInterval objects representing the risk intervals. parameters (dict): A dictionary of parameters required for the calculation, including sex, age, coltot, hdl, tas, tad, smoke, and diab.
- file_path = 'fr.r'
- function_name = 'calculadora.risc'
- interpretation = 'probability'
- intervals = [RiskInterval(value=0.0, name='Low risk'), RiskInterval(value=0.1, name='Medium risk'), RiskInterval(value=0.2, name='High risk')]
- parameters = {'age': AgeInt(id='age', minimum=35, maximum=70, name='Age'), 'coltot': Float(id=4224820, minimum=100, maximum=400, name='Colesterol'), 'diab': BoolInt(id=35817874, true=1, false=0, name='Has diabetes?'), 'hdl': Float(id=4011133, minimum=10, maximum=100, name='HDL'), 'sex': Enum(id='sex', values={1: 'Male', 2: 'Female'}, name='Sex'), 'smoke': BoolInt(id=1585856, true=1, false=0, name='Is smoker?'), 'tad': Float(id=4154790, minimum=50, maximum=150, name='TAD'), 'tas': Float(id=4152194, minimum=50, maximum=250, name='TAS')}
- title = 'Probability of having a cardiovascular event in the next 10 years'