Learn R Programming

ItemResponseTrees (version 0.2.5)

rtruncatednorm: Sample from a truncated normal distribution

Description

Sample from a truncated normal distribution

Usage

rtruncatednorm(n = NULL, mean = 0, sd = 1, ll = -Inf, ul = Inf)

Arguments

n

Number of observations

mean

Mean

sd

Standard deviation

ll

Lower bound

ul

Upper bound

See Also

There is a discussion and code on https://stackoverflow.com/a/14034577, and there is also the truncnorm package.