rtruncnormRcpp {countSTAR} | R Documentation |
Sample from a truncated normal distribution
Description
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.
Usage
rtruncnormRcpp(y_lower, y_upper, mu, sigma, u_rand)
Arguments
y_lower |
|
y_upper |
|
mu |
|
sigma |
|
u_rand |
|
Value
z_star m x 1
draw from the truncated normal distribution
Note
This function uses Rcpp
for computational efficiency.
[Package countSTAR version 1.0.2 Index]