Analyse the dataset using differnce in median survival
Source:R/analyse_diff_median_survival.R
analyse_diff_median_survival.RdAnalyse the dataset using differnce in median survival
Details
The implementation from the nph package is used, see the documentation there for details.
The data.frame returned by the created function includes the follwing columns:
pp value of the test, see Detailsalternativethe alternative useddiff_Qestimated differnce in quantile of the suvivla functionsdiff_Q_lowerunadjusted lower bound of the confidence interval for the differnce in quantile of the suvivla functionsdiff_Q_upperunadjusted upper bound of the confidence interval for the differnce in quantile of the suvivla functionsCI_levelthe CI level usedquantilequantile used for extimationN_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_diff_median_survival()(condition, dat)
#> $p
#> [1] 0.1421923
#>
#> $alternative
#> [1] "two.sided"
#>
#> $diff_Q
#> [1] 255
#>
#> $diff_Q_lower
#> [1] -85.53215
#>
#> $diff_Q_upper
#> [1] 595.5322
#>
#> $CI_level
#> [1] 0.95
#>
#> $quantile
#> [1] 0.5
#>
#> $N_pat
#> [1] 300
#>
#> $N_evt
#> [1] 300
#>