ptweibull: Cumulative Distribution Function of a Truncated Weibull...

View source: R/iclogcondist_simulation_dist.R

ptweibullR Documentation

Cumulative Distribution Function of a Truncated Weibull Distribution

Description

This function computes the cumulative distribution function (CDF) of a truncated Weibull distribution at a given point x.

Usage

ptweibull(x, shape = 1, scale = 1, upper_bound = Inf)

Arguments

x

A numeric vector at which to evaluate the CDF.

shape

A positive numeric value representing the shape parameter of the Weibull distribution. Default is 1.

scale

A positive numeric value representing the scale parameter of the Weibull distribution. Default is 1.

upper_bound

A positive numeric value indicating the upper truncation point. Default is Inf (no truncation).

Value

A numeric vector of the CDF values of the truncated Weibull distribution at x.

Examples

# Evaluate the CDF at x = 2 for a truncated Weibull distribution
ptweibull(2, shape = 2, scale = 1, upper_bound = 5)


iclogcondist documentation built on April 4, 2025, 5:18 a.m.