[SOLVED] Gibbs Sampler Error

If you have problems using RGeostats package or if you simply need some help on an unlisted subject.

[SOLVED] Gibbs Sampler Error

Postby niafall » 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:

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?
niafall
 
Posts: 21
Joined: Tue May 17, 2016 5:46 pm

Re: Gibbs Sampler Error

Postby Didier Renard » Fri Nov 04, 2016 11:24 pm

The only possible reason for such a behavior is the presence of duplicate which make the covariance matrix singular.
Please use db.duplicate to check.
Didier Renard
 
Posts: 337
Joined: Thu Sep 20, 2012 4:22 pm

Re: Gibbs Sampler Error

Postby niafall » Sat Nov 05, 2016 1:35 am

Thanks, Didier!

I did indeed find a duplicate record; it's working now.
niafall
 
Posts: 21
Joined: Tue May 17, 2016 5:46 pm


Return to Other Troubleshooting

Who is online

Users browsing this forum: No registered users and 4 guests

cron