Learn R Programming

algebraic.dist (version 0.9.1)

weibull_dist: Construct a Weibull distribution object.

Description

Creates an S3 object representing a Weibull distribution with the given shape and scale parameters. The Weibull PDF is $$f(t) = (shape/scale)(t/scale)^{shape-1} \exp(-(t/scale)^{shape})$$ for \(t > 0\).

Usage

weibull_dist(shape, scale)

Value

A weibull_dist object with classes c("weibull_dist", "univariate_dist", "continuous_dist", "dist").

Arguments

shape

Positive scalar shape parameter.

scale

Positive scalar scale parameter.

Examples

Run this code
x <- weibull_dist(shape = 2, scale = 3)
mean(x)
vcov(x)
format(x)

Run the code above in your browser using DataLab