LifeCRC Simulation Model
Submodules
models.lifecrc.model module
A class to predict the absolute risk of developing colorectal cancer within the next 10 years based on various input parameters such as age, waist circumference, height, alcohol consumption, smoking habit, physical activity, and dietary intake.
- class biomodel.models.lifecrc.model.LifeCRC
Bases:
CustomModel
A class to predict the absolute risk of developing colorectal cancer within the next 10 years based on various input parameters such as age, waist circumference, height, alcohol consumption, smoking habit, physical activity, and dietary intake.
- interpretation = 'probability'
- intervals = [RiskInterval(value=0.0, name='Low risk'), RiskInterval(value=0.1, name='Medium risk'), RiskInterval(value=0.2, name='High risk')]
- predict(age: AgeInt(id='age', minimum=20, maximum=100, name='Age'), waist: Float(id=4172830, minimum=0, maximum=200, name='Waist circumference in cm'), height: Float(id=607590, minimum=0, maximum=1000, name='Height in cm'), alcohol: Bool(id=4027639, name='Daily alcohol'), smoking: Bool(id=1585856, name='Smoking'), physical: Bool(id=4038719, name='Physically active'), vegetable: Float(id=4025582, minimum=0, maximum=1000, name='Vegetable intake per 100g/day'), dairy: Float(id=4022880, minimum=0, maximum=1000, name='Dairy products intake per 100g/day'), processed: Float(id=4028164, minimum=0, maximum=1000, name='Processed meat intake per 50g/day'), sugar: Float(id=4023854, minimum=0, maximum=1000, name='Sugar and confectionary intake per 50g/day')) float
Predicts the absolute risk of colorectal cancer within 10 years based on the input parameters.
- Args:
age (int): Age of the individual in years (minimum=20, maximum=100) waist (float): Waist circumference in cm (minimum=0, maximum=200) height (float): Height in cm (minimum=0, maximum=1000) alcohol (bool): Daily alcohol consumption (True for yes, False for no) smoking (bool): Smoking habit (True for yes, False for no) physical (bool): Physically active or not (True for yes, False for no) vegetable (float): Vegetable intake per 100g/day (minimum=0, maximum=1000) dairy (float): Dairy products intake per 100g/day (minimum=0, maximum=1000) processed (float): Processed meat intake per 50g/day (minimum=0, maximum=1000) sugar (float): Sugar and confectionary intake per 50g/day (minimum=0, maximum=1000)
- Returns:
float: The absolute risk of colorectal cancer within 10 years.
- title = 'Probability of developing colorectal cancer in the next 10 years'