zward / Amua

An open source modeling framework
GNU General Public License v3.0
33 stars 11 forks source link

Time- and state-dependent probabilities #34

Closed timcras closed 4 years ago

timcras commented 5 years ago

Dear Zach,

If I want a person to have a test for example only the first year that that person is in that state, how do I do that? Below is what I found about this question for Treeage. I'm particularly interested in the 'time in state' time dependent value, but also the one concerning Age. Thanks very much in advance!

TreeAge Pro supports time‐dependent values • Time – f(_stage) • Age– f(_stage + startAge) • Time in state – f(_tunnel)

zward commented 5 years ago

There are a couple of different approaches you could use.

If you are using an individual-level (Monte Carlo) simulation:

If you are using a cohort simulation you could use a 'tunnel state' where people stay in Test for one cycle before going to Sick. (This approach could work for an individual-level simulation too.) With this approach I think you'd have to be more careful though about accounting for utilities and competing risks, depending on the cycle length: image