Description Usage Arguments Value
a function to generate truncated distribution. Simulate one random sample from a standard normal distribution truncated to the left in the middle .rtrunc(1, spec = "norm", a = -Inf, b = 0)
1 |
n |
the number of observations. |
spec |
a character string to specify the distribution. |
a |
lower bound. |
b |
upper bound. |
... |
any other arguments that can be used for the functions of different distribution such as "mean", "sd" for "qnorm()". |
A vector contains n random samples from the truncated distribution "spec".
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.