Description Arguments Value Available Proposals Author(s) See Also Examples
Functions returning a component of a mixture for a proposal distribution. These functions provide an example of implementation for two interesting targets. They use a function closure approach in order to accept a general set of arguments and to store in their environment the variables specified by the user. The returned function has to be in the form
dproposal(xx,mu=rep(0,ncol(xx)),Sig=diag(1,ncol(xx),ncol(xx)))
rproposal(n,mu=0,Sig=1)
xx |
A matrix with |
n |
The size of the sample to simulate. |
mu |
|
Sig |
|
Value of the density for each observation.
A sample of size n
.
mvtComp(df=3)
:Mixture of multivariate t distributions:
df
number of degrees of freedom.
mvnormComp()
:Gaussian Mixture.
Luca Pozzi, p.luc@stat.berkeley.edu
See also target
.
1 2 | mvtComp(df=3)$d(t(c(1,1)))
mvnormComp()$r(1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.