qtlnorm: Quantile Function of a Truncated Log-Normal Distribution

View source: R/iclogcondist_simulation_dist.R

qtlnormR Documentation

Quantile Function of a Truncated Log-Normal Distribution

Description

This function computes the quantiles of a truncated log-normal distribution for a given probability vector.

Usage

qtlnorm(q, meanlog = 0, sdlog = 1, upper_bound = Inf)

Arguments

q

A numeric vector of probabilities for which to calculate the quantiles.

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 quantiles corresponding to the given probabilities in q.

Examples

# Calculate the 0.5 quantile of a truncated log-normal distribution
qtlnorm(0.5, meanlog = 0, sdlog = 1, upper_bound = 5)


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