Description Usage Arguments Details Value Note Author(s) See Also Examples
Computes log density for a Wishart random variable.
1 | ldwishart(W, v, S)
|
W |
Wishart variate for which the log density is to be computed |
v |
degrees of freedom for the Wishart variate |
S |
scale factor for the Wishart variate (typically the inverse covariance if you are working with a multivariate random normal setup |
Computes the log density for a Wishart variate with mean S and degrees of freedom v. Special care has been taken to avoid underflow in the computation.
A scalar, the value of the log density for the variate W with mean S and degrees of freedom v.
This is modifed from the log density function in MCMCpack. It better handles underflows.
Patrick T. Brandt
1 2 3 |
##
## MSBVAR Package v.0.9-2
## Build date: Fri May 10 06:41:51 2019
## Copyright (C) 2005-2019, Patrick T. Brandt
## Written by Patrick T. Brandt
##
## Support provided by the U.S. National Science Foundation
## (Grants SES-0351179, SES-0351205, SES-0540816, and SES-0921051)
##
[1] -337.6232
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.