forked from maryamsadeghimehr/HCV_Modelling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathauto_mort.R
36 lines (29 loc) · 860 Bytes
/
auto_mort.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
########################################################
## mortality is from any state except the last one
########################################################
ns = statesNum
for(i in 1:(ns - 4))
{
tf[[i,ns]] = mort_Liver.fun
}
########################################################
## mortality due to Liver problems
########################################################
for(i in 1:(ns - 4))
{
tf[[i,ns - 3]] = mort.fun
}
########################################################
## mortality due to Drug consumption
########################################################
for(i in 1:(ns - 4))
{
tf[[i,ns - 2 ]] = mort_IDU.fun
}
########################################################
## mortality due to HIV
########################################################
for(i in 1:(ns - 4))
{
tf[[i,ns - 1]] = mort_HIV.fun
}