LRTruncation: Probabilities for distributions truncated on the left (lower)...

LRTruncationR Documentation

Probabilities for distributions truncated on the left (lower) and/or right (upper).

Description

Given left (lower) and/or right (upper) truncation values and probabilities for a distribution calculates and returns the probabilities for the truncated distribution.

Usage

LRTruncation(probability, ltvalue, utvalue)

Arguments

probability

Probabilities for untruncated distribution.

ltvalue

Left (lower) truncation value.

utvalue

Right (upper) truncation value.

Value

Vector of probabilities for truncated distribution.

Author(s)

David M. Smith <dmccsmith@verizon.net>

Examples

probability <- c(3.375659e-08, 1.023277e-05, 5.440752e-04,
 8.768246e-03, 5.663573e-02, 1.735599e-01, 2.819850e-01,
 2.625282e-01, 1.482712e-01, 5.305443e-02, 1.244452e-02)
probabilities <- LRTruncation(probability, ltvalue=4, utvalue=11)
print(probabilities)

CountsEPPM documentation built on May 29, 2024, 11:54 a.m.