analyse_diff_median_survival {SimNPH}R Documentation

Analyse the dataset using differnce in median survival

Description

Analyse the dataset using differnce in median survival

Usage

analyse_diff_median_survival(
  quant = 0.5,
  level = 0.95,
  alternative = "two.sided"
)

Arguments

quant

quantile for which the difference should be calculated, defaults to the median

level

confidence level for CI computation

alternative

alternative hypothesis for the tests "two.sided" or "one.sieded"

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:

Value

Returns an analysis function, that can be used in runSimulations

See Also

nph::nphparams

Examples

condition <- merge(
  assumptions_delayed_effect(),
  design_fixed_followup(),
  by = NULL
) |>
  head(1)
dat <- generate_delayed_effect(condition)
analyse_diff_median_survival()(condition, dat)

[Package SimNPH version 0.5.5 Index]