Learn R Programming

SimNPH (version 0.5.7)

analyse_logrank: Analyse Dataset with the Logrank Test

Description

Analyse Dataset with the Logrank Test

Usage

analyse_logrank(alternative = "two.sided")

Value

an analysis function that returns a data.frame with the columns

  • p p-value of the logrank test

  • alternative the alternative used

  • N_pat number of patients

  • N_evt number of events

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.

Examples

Run this code
condition <- merge(
  assumptions_delayed_effect(),
  design_fixed_followup(),
  by = NULL
) |>
  head(1)
dat <- generate_delayed_effect(condition)
analyse_logrank()(condition, dat)

Run the code above in your browser using DataLab