norm_trunc: Truncated normal distribution.

Description Usage Arguments

Description

Density, distribution function, quantile function, and random generation for the normal distribution truncated at (lower, upper).

Usage

1
2
3
4
5
6
7
rnorm_trunc(n, mean, sd, lower, upper)

dnorm_trunc(x, lower = -Inf, upper = Inf, mean = 0, sd = 1, log = F)

pnorm_trunc(q, mean, sd, lower, upper)

qnorm_trunc(p, mean, sd, lower, upper)

Arguments

n

number of variates to generate

mean

underlying distribution mean

sd

underlying distribution sd

lower

lower truncation bound

upper

upper truncation bound

x

vector of quantiles

log

return logarithm

q

vector of quantiles

p

vector of probabilities


kuperov/bdist documentation built on May 23, 2019, 7:20 a.m.