Skip to content

Commit 73109cc

Browse files
committed
transition rewards
1 parent 25ff35f commit 73109cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

R/STM_03.R

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,11 @@ generate_psa_params <- function(n_sim = 1000, seed = 071818){
426426
u_S1 = rbeta(n_sim, shape1 = 130, shape2 = 45), # utility when sick
427427
u_S2 = rbeta(n_sim, shape1 = 50, shape2 = 50), # utility when sicker
428428
u_D = 0, # utility when dead
429-
u_trt1 = rbeta(n_sim, shape1 = 300, shape2 = 15) # utility when being treated
429+
u_trt1 = rbeta(n_sim, shape1 = 300, shape2 = 15), # utility when being treated
430+
# Transition rewards
431+
du_HS1 = rbeta(n_sim, shape1 = 11, shape2 = 1088), # disutility when transitioning from Healthy to Sick
432+
ic_HS1 = rgamma(n_sim, shape = 25, scale = 40), # increase in cost when transitioning from Healthy to Sick
433+
ic_D = rgamma(n_sim, shape = 100, scale = 20) # increase in cost when dying
430434
)
431435
return(df_psa)
432436
}

0 commit comments

Comments
 (0)