Project description:Simple Markov model.
There are 3 disease states: Healthy, Sick, and Dead, where the Dead state is terminal.
The yearly transition probabilities are:
Healthy to Dead: 0.01; Healthy to Sick: 0.2 for Male and 0.1 for Female; Sick to Healthy: 0.1; Sick to Dead: 0.3.
The transition probability now depends on the cohort (Male or Female) and can be expressed as a function of a Boolean covariate Male.
Initial conditions: Healthy = (50 Male, 50 Female), Sick = (0,0) and Dead = (0,0).
Output: Number of men and women in each disease state for years 1-10.