extrunc: Expected value and Variance of a truncated distribution

Description Usage Arguments

View source: R/extrunc.R

Description

These function compute the expected value and variance of a truncated random variable with the given specification over the truncated domain using numerical integration.

Usage

1
extrunc(spec, a = -Inf, b = Inf, params = NULL, ...)

Arguments

spec

A character vector for the name of the distribution (e.g., "norm")

a

The minimum value allowed in the distribution (inclusive).

b

The maximum value allowed in the distribution (inclusive).

params

A list of distribution parameter name/value pairs

...

Distribution parameter arguments. Only used if 'params' is NULL.


dereksonderegger/truncdist documentation built on May 17, 2019, 1:13 a.m.