powered by
Analyse the dataset using differnce in median survival
analyse_diff_median_survival( quant = 0.5, level = 0.95, alternative = "two.sided" )
Returns an analysis function, that can be used in runSimulations
quantile for which the difference should be calculated, defaults to the median
confidence level for CI computation
alternative hypothesis for the tests "two.sided" or "one.sieded"
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 Details
p
alternative the alternative used
alternative
diff_Q estimated differnce in quantile of the suvivla functions
diff_Q
diff_Q_lower unadjusted lower bound of the confidence interval for the differnce in quantile of the suvivla functions
diff_Q_lower
diff_Q_upper unadjusted upper bound of the confidence interval for the differnce in quantile of the suvivla functions
diff_Q_upper
CI_level the CI level used
CI_level
quantile quantile used for extimation
quantile
N_pat number of patients
N_pat
N_evt number of events
N_evt
nph::nphparams
condition <- merge( assumptions_delayed_effect(), design_fixed_followup(), by = NULL ) |> head(1) dat <- generate_delayed_effect(condition) analyse_diff_median_survival()(condition, dat)
Run the code above in your browser using DataLab