trunc-mean-var: Mean and Variance of a truncated distribution

Description Usage Arguments Value Examples

Description

Mean and Variance of a truncated distribution

Usage

1
2
3
meanTruncated(f, param1, param2, a, b)

varTruncated(f, param1, param2, a, b)

Arguments

f

string name of a distribution (gamma, norm, beta, lnorm, weibull)

param1

the first distribution parameter

param2

the second distribution parameter

a

lower truncation limit

b

upper truncation limit

Value

a list containing the mean or variance and absolute error

Examples

1
2
meanTruncated("gamma", 1, 2, 0.1, 5)
varTruncated("gamma", 1, 2, 0.1, 5)

bertcarnell/truncateddist documentation built on May 11, 2021, 11:07 a.m.