pwexpcuts {lrstat}R Documentation

Piecewise exponential approximation to a survival distribution

Description

Obtains the piecewise exponential distribution that approximates a survival distribution.

Usage

pwexpcuts(S, ...)

Arguments

S

The survival function of a univariate survival time.

...

Additional arguments to be passed to S.

Value

A list with three components:

Author(s)

Kaifeng Lu, kaifenglu@gmail.com

Examples


# Example 1: Piecewise exponential 
pwexpcuts(ptpwexp, piecewiseSurvivalTime = c(0, 3.4, 5.5), 
          lambda = c(0.0168, 0.0833, 0.0431), lowerBound = 0,
          lower.tail = FALSE) 
 
# Example 2: Weibull
pwexpcuts(pweibull, shape = 1.37, scale = 1/0.818, lower.tail = FALSE)


[Package lrstat version 0.2.6 Index]