Description Usage Arguments Details Note Author(s) References Examples
Generates a random variable from a Student-t sampling model.
1 |
n |
integer, number of scalars to generate |
mu |
location, may be a rv |
scale |
scale, may be a rv |
df |
degrees of freedom, may be a rv |
ncp |
non-centrality parameter |
Sigma |
(optional) scaling matrix for multivariate generation |
This function generates both univariate (independent and identically distributed) Student-t random variables and multivariate Student-t distributed vectors (with a given scaling matrix).
For details of the parameters, see the entry on mvt
in the
mvtnorm
package.
If any of the arguments are random, the resulting simulations may have non-t marginal distributions.
Jouni Kerman jouni@kerman.com
Kerman, J. and Gelman, A. (2007). Manipulating and Summarizing Posterior Simulations Using Random Variable Objects. Statistics and Computing 17:3, 235-244.
See also vignette("rv")
.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.