| analyse_aft {SimNPH} | R Documentation | 
Analyse Dataset with accelarated failure time models
Description
Analyse Dataset with accelarated failure time models
Usage
analyse_aft(level = 0.95, dist = "weibull", alternative = "two.sided")
Arguments
| level | confidence level for CI computation | 
| dist | passed to survival::survreg | 
| 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
-  pp value of the score test (two.sided) or the Wald test (one.sided)
-  alternativethe alternative used
-  coefcoefficient fortrt
-  lowerlower 95% confidence intervall boundary for the coefficient
-  upperlower 95% confidence intervall boundary for the coefficient
-  CI_levelthe CI level used
-  N_patnumber of patients
-  N_evtnumber of events
Examples
condition <- merge(
  assumptions_delayed_effect(),
  design_fixed_followup(),
  by = NULL
) |>
  head(1)
dat <- generate_delayed_effect(condition)
analyse_aft()(condition, dat)
analyse_aft(dist="lognormal")(condition, dat)