Re: [R] Probabilities in discrete event simulation model in R

2020-07-16 Thread Bert Gunter
Please read and follow the posting guide linked below when asking for help here. This is not a "we do the work for you" forum. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County"

[R] Probabilities in discrete event simulation model in R

2020-07-16 Thread Shah Alam
I am designing a programme in R to simulate two events that are 1. a person gets cancer, or 2. die of other causes. I have data for the probability of getting cancer by age and probability of death due to causes other than cancer. 1. My dataset has 3 columns 1) age 2) prob getting cancer