ptlnorm: Cumulative Distribution Function of a Truncated Log-Normal...

View source: R/iclogcondist_simulation_dist.R

ptlnormR Documentation

Cumulative Distribution Function of a Truncated Log-Normal Distribution

Description

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

Usage

ptlnorm(x, meanlog = 0, sdlog = 1, upper_bound = Inf)

Arguments

x

A numeric vector at which to evaluate the CDF.

meanlog

A numeric value representing the mean of the log-normal distribution on the log scale. Default is 0.

sdlog

A positive numeric value representing the standard deviation of the log-normal distribution on the log scale. 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 log-normal distribution at x.

Examples

# Evaluate the CDF at x = 2 for a truncated log-normal distribution
ptlnorm(2, meanlog = 0, sdlog = 1, upper_bound = 5)


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