survdefWeibull: Create a Survdef Object for a Weibull Distribution

View source: R/survdefWeibull.R

survdefWeibullR Documentation

Create a Survdef Object for a Weibull Distribution

Description

Create a Survdef Object for a Weibull Distribution

Usage

survdefWeibull(shape, scale)

Arguments

shape

the shape parameter for the Weibull distribution. Parametrization is according to built-in R functions for the Weibull distribution, see ?Weibull for more information.

scale

the scale parameter for the Weibull distribution.

Value

a list with components:

S

a vectorized function that takes time as input and returns the survival probability at that time

h

a vectorized function that takes time as input and returns the hazard at that time

Examples

survdefWeibull(shape = 1.05, scale = 8573)

anneae/RMSTdesign documentation built on Nov. 7, 2023, 1:59 a.m.