data(hce_scenario_a)
maraca_dat <- maraca(data = hce_scenario_a,
step_outcomes = c("Outcome I", "Outcome II",
"Outcome III", "Outcome IV"),
last_outcome = "Continuous outcome",
fixed_followup_days = 3 * 365,
column_names = c(outcome = "GROUP",
arm = "TRTP",
value = "AVAL0"),
arm_levels = c(active = "Active",
control = "Control"),
compute_win_odds = TRUE
)
component_plot(maraca_dat)
Rates_A <- c(1.72, 1.74, 0.58, 1.5, 1)
Rates_P <- c(2.47, 2.24, 2.9, 4, 6)
hce_dat <- hce::simHCE(n = 2500, TTE_A = Rates_A, TTE_P = Rates_P,
CM_A = -3, CM_P = -6, CSD_A = 16, CSD_P = 15, fixedfy = 3,
seed = 31337)
component_plot(hce_dat)
Run the code above in your browser using DataLab