Analyse the dataset using differnce in median survival
Source:R/analyse_diff_median_survival.R
analyse_diff_median_survival.Rd
Analyse 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:
p
p value of the test, see Detailsalternative
the alternative useddiff_Q
estimated differnce in quantile of the suvivla functionsdiff_Q_lower
unadjusted lower bound of the confidence interval for the differnce in quantile of the suvivla functionsdiff_Q_upper
unadjusted upper bound of the confidence interval for the differnce in quantile of the suvivla functionsCI_level
the CI level usedquantile
quantile used for extimationN_pat
number of patientsN_evt
number 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.0005225646
#>
#> $alternative
#> [1] "two.sided"
#>
#> $diff_Q
#> [1] 449
#>
#> $diff_Q_lower
#> [1] 195.3115
#>
#> $diff_Q_upper
#> [1] 702.6885
#>
#> $CI_level
#> [1] 0.95
#>
#> $quantile
#> [1] 0.5
#>
#> $N_pat
#> [1] 300
#>
#> $N_evt
#> [1] 300
#>