Example MISCAN processesΒΆ
This page gives an overview of the example MISCAN disease Processes in MISCore.
This is not an extensive overview of all processes and all options for every Process.
For a complete overview, check the Processes page in the Reference guide.
Many processes require many parameters.
For example, the creation of a EC object could look like this:
from miscore import processes
ec = processes.EC(
name="ec",
hazard=processes.ec.data.us.hazard,
age_factors=processes.ec.data.us.age_factors,
dwell_hyperplasia=processes.ec.data.us.dwell_hyperplasia,
dwell_preclinical=processes.ec.data.us.dwell_preclinical,
cure=processes.ec.data.us.cure,
time_to_death=processes.ec.data.us.time_to_death,
onset_method="before_oc"
)
Remember that each Process has a from_data() method which can be used to create instances in a single line.
Just pass the module in which the required parameters are defined, like shown below.
This method also allows for overriding certain parameters.
from miscore import processes
ec = processes.EC.from_data(processes.ec.data.us, name="ec")