Learn R Programming

algebraic.dist (version 0.9.1)

surv.weibull_dist: Survival function for a Weibull distribution.

Description

Returns a function that computes \(S(t) = P(X > t)\) for the Weibull distribution.

Usage

# S3 method for weibull_dist
surv(x, ...)

Value

A function function(t, log.p = FALSE, ...) returning the survival probability (or log-survival probability) at t.

Arguments

x

A weibull_dist object.

...

Additional arguments (not used).

Examples

Run this code
x <- weibull_dist(shape = 2, scale = 3)
S <- surv(x)
S(1)
S(3)

Run the code above in your browser using DataLab