Showing posts with label
tnorm()
.
Show all posts
Showing posts with label
tnorm()
.
Show all posts
Wednesday, November 30, 2011
Truncated normal distribution with tnorm()
Truncated normal distributions can be worked with using the
tnorm()
function in the msm package.
To generate random numbers from a truncated normal distribution you can use the code
rtnorm(n, mean=0, sd=1, lower=-Inf, upper=Inf)
Older Posts
Home
Subscribe to:
Posts (Atom)