surv.weibull_dist: Survival function for a Weibull distribution.

View source: R/weibull_dist.R

surv.weibull_distR Documentation

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 class 'weibull_dist'
surv(x, ...)

Arguments

x

A weibull_dist object.

...

Additional arguments (not used).

Value

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

Examples

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

algebraic.dist documentation built on Feb. 27, 2026, 5:06 p.m.