analyse_coxph {SimNPH} | R Documentation |
Analyse Dataset with the Cox Protportional Hazards Model
Description
Analyse Dataset with the Cox Protportional Hazards Model
Usage
analyse_coxph(level = 0.95, alternative = "two.sided")
Arguments
level |
confidence level for CI computation |
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 returns a list with the elements
-
p
p value of the score test (two.sided) or the Wald test (one.sided) -
alternative
the alternative used -
coef
coefficient fortrt
-
hr
hazard ratio fortrt
-
hr_lower
lower 95% confidence intervall boundary for the hazard ratio fortrt
-
hr_upper
lower 95% confidence intervall boundary for the hazard ratio fortrt
-
CI_level
the CI level used -
N_pat
number of patients -
N_evt
number of events
Examples
condition <- merge(
assumptions_delayed_effect(),
design_fixed_followup(),
by = NULL
) |>
head(1)
dat <- generate_delayed_effect(condition)
analyse_coxph()(condition, dat)