analyse_gehan_wilcoxon: Create Analyse function for Gehan Wilcoxon test

View source: R/analyse_gehan_wilcoxon.R

analyse_gehan_wilcoxonR Documentation

Create Analyse function for Gehan Wilcoxon test

Description

Create Analyse function for Gehan Wilcoxon test

Usage

analyse_gehan_wilcoxon(alternative = "two.sided")

Arguments

alternative

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

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.

Value

an analyse function that can be used in runSimulation

Examples

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

SimNPH documentation built on April 12, 2025, 9:13 a.m.