I am writing a programme to simulate the age at which women will get breast cancer. I have data on the cumulative incidence rate for the whole population.
What I am doing right now is using Monte Carlo methods at every 5 year age step from 0 years old to the age of women have cancer. But this seems stupid and inefficient, because I am dealing with a huge number of women.
One suggestion is to directly use the cumulative incidence rate:
- Generate a random number from 0 to 1.
- Find the age which has the same value of probability as this random number, and apply that simulated age for that woman having cancer.
So I have two questions:
- What are your suggestions to do this process?
- Is the suggestion I have mentioned above correct? I'm concerned that cumulative incidence rate means the risk of having cancer BEFORE this age rather than AT this age?