Analyse the Dataset using the difference in RMST
Details
The implementation from the nph package is used, see the documentation there for details.
alternative can be "two.sided" for a two sided test of equality of the
summary statistic or "one.sided" for a one sided test testing H0: treatment
has equal or shorter survival than control vs. H1 treatment has longer
survival than control.
The data.frame returned by the created function includes the follwing columns:
pp value of the test, see Detailsalternativethe alternative usedrmst_diffestimated differnce in RMSTrmst_diff_lowerunadjusted lower bound of the confidence interval for differnce in RMSTrmst_diff_upperunadjusted upper bound of the confidence interval for differnce in RMSTCI_levelthe CI level usedN_patnumber of patientsN_evtnumber of events
Examples
condition <- merge(
assumptions_delayed_effect(),
design_fixed_followup(),
by = NULL
) |>
head(1)
dat <- generate_delayed_effect(condition)
analyse_rmst_diff()(condition, dat)
#> $p
#> [1] 0.003229318
#>
#> $alternative
#> [1] "two.sided"
#>
#> $rmst_diff
#> [1] 435.3153
#>
#> $rmst_diff_lower
#> [1] 145.6053
#>
#> $rmst_diff_upper
#> [1] 725.0254
#>
#> $CI_level
#> [1] 0.95
#>
#> $N_pat
#> [1] 300
#>
#> $N_evt
#> [1] 300
#>