Closed timcras closed 5 years ago
Is Scan really a Markov State, or an event that happens during a cycle? Something like this:
Either way, you could have a variable pScan
which varies the probability of scan by time by using:
pScan = if(t==1 | t==5, 1, 0)
This will return 1 in cycles 1 and 5 and 0 otherwisepScan = tableScan[t,1]
where tableScan
looks likeIndex | 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?
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:
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.
Good to hear. I will close this issue then.
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!