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)
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment