truncnorm {truncnorm}R Documentation

The Truncated Normal Distribution

Description

Density, distribution function, quantile function, random generation and expected value function for the truncated normal distribution with mean equal to 'mean' and standard deviation equal to 'sd'.

Usage

dtruncnorm(x, a, b, mean = 0, sd = 1)
ptruncnorm(q, a, b, mean = 0, sd = 1)
qtruncnorm(p, a, b, mean = 0, sd = 1)
rtruncnorm(n, a, b, mean = 0, sd = 1)
etruncnorm(a, b, mean, sd)
vtruncnorm(a, b, mean, sd)

Arguments

x,q vector of quantiles.
p vector of probabilites.
n number of observations.
a vector of lower bounds.
b vector of upper bounds.
mean vector of means.
sd vector of standard deviations.

Details

If 'mean' or 'sd' are not specified they assume the default values of '0' and '1', respectively.

Value

'dtruncnorm' gives the density, 'ptruncnorm' gives the distribution function, 'qtruncnorm' gives the quantile function, 'rtruncnorm' generates random deviates, 'etruncnorm' gives the expected value and 'vtruncnorm' the variance of the distirbution.

Author(s)

Heike Trautmann trautmann@statistik.uni-dortmund.de, Detlef Steuer steuer@hsu-hamburg.de and Olaf Mersmann olafm@statistik.uni-dortmund.de. 'qtruncnorm' was originally published in package 'msm' written by C. H. Jackson chris.jackson@mrc-bsu.cam.ac.uk

References

FIXME: Erstes auftauchen?


[Package truncnorm version 1.0.0 Index]