analyse_weibull {SimNPH} | R Documentation |
Analyse Dataset with Weibull Regression
Description
Analyse Dataset with Weibull Regression
Usage
analyse_weibull(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
the columns in the return are the two-sided p-value for the test of equal medians. The estimated medians in the treatment and control group and the estimated difference in median survival with confidence intervals.
The estimates and tests are comstructed by fitting seperate Weibull regression models in the treatment and control groups and then estimating the medians and respective variances with the delta-method.
Value
an analysis function that returns a data.frame
Examples
condition <- merge(
assumptions_delayed_effect(),
design_fixed_followup(),
by=NULL
) |>
head(3) |>
tail(1)
dat <- generate_delayed_effect(condition)
analyse_weibull()(condition, dat)
[Package SimNPH version 0.5.5 Index]