Description Usage Arguments Examples
Functions dmxWishart
and rmxWishart
are for evaluating
densities and generating random samples from corresponding Wishart distribution.
1 2 3 | dmxWishart(X, df, S = diag(nrow(X)))
rmxWishart(n, df, S)
|
X |
a |
df |
degrees of freedom |
S |
a |
n |
the number of samples to be generated. |
1 2 3 4 5 | ## generate 10 samples with S=diag(3) with df=10
smW = rmxWishart(10, df=10, S=diag(3))
## evaluate each sample's density
t(apply(smW, 3, dmxWishart, df=10, S=diag(3)))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.