weibull.test {SurvivalTests}R Documentation

Weibullness Test

Description

weibull.test performs weibullness test from weibull plot in each group.

Usage

weibull.test(formula, data, alpha = 0.05, na.rm = TRUE, verbose = TRUE)

Arguments

formula

a formula of the form lhs ~ rhs where lhs gives the survival times and rhs the corresponding groups.

data

a tibble or data frame containing the variables in formula.

alpha

the level of significance to assess normality. Default is set to alpha = 0.05.

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

verbose

a logical for printing output to R console.

Value

A data frame gives the test results for the weibullness of groups.

Author(s)

Osman Dag

See Also

wp.test

Examples


library(survival)
lung$status <- ifelse(lung$status == 2, 1, 0)
lung$age <- arules::discretize(lung$age, breaks = 3, labels = c("Low","Medium","High"))

library(SurvivalTests)

weibull.test(time~age, lung)



[Package SurvivalTests version 1.0 Index]