qtllogis: Quantile Function of a Truncated Log-Logistic Distribution

View source: R/iclogcondist_simulation_dist.R

qtllogisR Documentation

Quantile Function of a Truncated Log-Logistic Distribution

Description

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

Usage

qtllogis(q, shape = 1, scale = 1, upper_bound = Inf)

Arguments

q

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

shape

A positive numeric value representing the shape parameter of the log-logistic distribution. Default is 1.

scale

A positive numeric value representing the scale parameter of the log-logistic 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 quantiles corresponding to the given probabilities in q.

Examples

# Calculate the 0.5 quantile of a truncated log-logistic distribution
qtllogis(0.5, shape = 2, scale = 1, upper_bound = 5)


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