Description Usage Arguments Value
View source: R/SAM_gibbs_functions.R
This function generates n samples from a truncated normal distribution using the CDF of the normal distribution
1 | tnorm(n, lo, hi, mu, sig)
|
n |
number of samples to generate |
lo |
lower truncation point. If there is no lower truncation, lo should be set to -Inf |
hi |
upper truncation point. If there is no upper truncation, hi should be set to Inf |
mu |
mode of the truncated normal distribution |
sig |
dispersion parameter for truncated normal |
this function returns a vector of size n
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.