rtruncnormRcpp | R Documentation |
Sample from a truncated normal distribution. Samples are drawn componentwise, so each component of the vector is allowed its own mean, standard deviation, and upper and lower limits. The components are assumed to be independent.
rtruncnormRcpp(y_lower, y_upper, mu, sigma, u_rand)
y_lower |
|
y_upper |
|
mu |
|
sigma |
|
u_rand |
|
z_star m x 1
draw from the truncated normal distribution
This function uses Rcpp
for computational efficiency.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.