Learn R Programming

distributional (version 0.2.0)

dist_truncated: Truncate a distribution

Description

experimental

Usage

dist_truncated(dist, lower = -Inf, upper = Inf)

Arguments

dist

The distribution(s) to truncate.

lower, upper

The range of values to keep from a distribution.

Details

Note that the samples are generated using inverse transform sampling, and the means and variances are estimated from samples.