MAP.GaussianInvWishart {bbricks} R Documentation

## Maximum A Posteriori (MAP) estimate of a "GaussianInvWishart" object

### Description

Generate the MAP estimate of Sigma in following model structure:

x \sim Gaussian(mu,Sigma)

Sigma \sim InvWishart(v,S)

mu is known. Gaussian() is the Gaussian distribution. See `?dGaussian` and `?dInvWishart` for the definition of the distributions.
The model structure and prior parameters are stored in a "GaussianInvWishart" object.
The MAP estimates are:

• (Sigma_MAP) = argmax p(Sigma|v,S,x,mu)

### Usage

```## S3 method for class 'GaussianInvWishart'
MAP(obj, ...)
```

### Arguments

 `obj` A "GaussianInvWishart" object. `...` Additional arguments to be passed to other inherited types.

### Value

matrix, the MAP estimate of "Sigma".

### References

Gelman, Andrew, et al. Bayesian data analysis. CRC press, 2013.

MARolA, K. V., JT KBNT, and J. M. Bibly. Multivariate analysis. AcadeInic Press, Londres, 1979.

`GaussianInvWishart`
```obj <- GaussianInvWishart(gamma=list(mu=c(-1.5,1.5),v=3,S=diag(2)))