zward / Amua

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

Tunnel states #32

Closed timcras closed 5 years ago

timcras commented 5 years ago

How can I use tunnel states? For example, if a patient needs to have a scan at year 1 and 5, but not at years 2-4, how can I program it in Amua that when at year 1 and 5 the patient goes to 'Scan' in the Markov model, but at years 2-4 it goes to 'No Scan'. Thanks in advance!

zward commented 5 years ago

Is Scan really a Markov State, or an event that happens during a cycle? Something like this:

image

Either way, you could have a variable pScan which varies the probability of scan by time by using:

Index Value
0 0
1 1
2 0
3 0
4 0
5 1
6 0

and you would use the truncate option.

Would one of those approaches work?

timcras commented 5 years ago

Hi Zach,

The scan is indeed more an event than it is a Markov State. I have tried your approach and it seems to work perfectly! Thank you very much for your help.

Best regards, Tim

From: Zach Ward [mailto:notifications@github.com] Sent: vrijdag 31 mei 2019 17:44 To: zward/Amua Cc: T.Y. Cras; Author Subject: Re: [zward/Amua] Tunnel states (#32)

Is Scan really a Markov State, or an event that happens during a cycle? Something like this:

[Image removed by sender. image]https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fuser-images.githubusercontent.com%2F5375573%2F58717166-9d5e9580-8398-11e9-8a2c-5a79e5848e95.png&data=02%7C01%7Ct.cras%40erasmusmc.nl%7Cbc871afacb004184d47808d6e5dec47d%7C526638ba6af34b0fa532a1a511f4ac80%7C0%7C0%7C636949142275963324&sdata=MQtNANDbAydgHzl0YoIAxf0OdmEOHiQSL%2FEDQzEkIVQ%3D&reserved=0

Either way, you could have a variable pScan which varies the probability of scan by time by using:

Value

0

0

1

1

2

0

3

0

4

0

5

1

6

0

and you would use the truncate option.

Would one of those approaches work?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fzward%2FAmua%2Fissues%2F32%3Femail_source%3Dnotifications%26email_token%3DAMG3FT25UIBWVRWDAG734CTPYFBTBA5CNFSM4HRWOSHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWVS76Y%23issuecomment-497758203&data=02%7C01%7Ct.cras%40erasmusmc.nl%7Cbc871afacb004184d47808d6e5dec47d%7C526638ba6af34b0fa532a1a511f4ac80%7C0%7C0%7C636949142275973332&sdata=Y57Y1kHt%2BSytDawbMXt0JQ62MkKnyl0qEs26XbQqV%2BA%3D&reserved=0, or mute the threadhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMG3FT3PITQHQMBQNAJBEEDPYFBTBANCNFSM4HRWOSHA&data=02%7C01%7Ct.cras%40erasmusmc.nl%7Cbc871afacb004184d47808d6e5dec47d%7C526638ba6af34b0fa532a1a511f4ac80%7C0%7C0%7C636949142275983336&sdata=3FySHlgBFUb79zWdFT%2F4J19ybcuUGRFDglXJSLc2ryo%3D&reserved=0.

zward commented 5 years ago

Good to hear. I will close this issue then.