If statement for when matrix is close to singular
Mostrar comentarios más antiguos
Hi all,
I'm running an MCMC to estimate a model and for several parameter draws I get a warning that a matrix is close to singular or badly scaled when trying to invert it. I want to embed an if-statement in order to discard such draws and end evaluation of the function to speed up my MCMC and focus only on those parameters with high density.
Is there a way I can do this?
Respuestas (1)
David Hill
el 4 de Sept. de 2020
0 votos
Look at cond() function:
Categorías
Más información sobre Pulse and Transition Metrics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!