### [SOLVED] Gibbs Sampler Error

Posted:

**Fri Nov 04, 2016 8:00 pm**I am using the gibbs sampler (gibbs) to generate a normal distribution from an anamorphosis transformed, truncated distribution. In most cases (I am running this for many fish surveys) it works perfectly, but in one case I get the following error:

Can anyone help with this?

- Code: Select all
`Error in the matrix inversion : Pivot #2 is null`

Error during the covariance matrix inversion

The function is interrupted

Error: Error in R_gibbs

Can anyone help with this?