Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BLAS/LAPACK routine 'DGEBAL' gave error code -3 #28

Open
MThomas312 opened this issue Oct 27, 2020 · 1 comment
Open

BLAS/LAPACK routine 'DGEBAL' gave error code -3 #28

MThomas312 opened this issue Oct 27, 2020 · 1 comment

Comments

@MThomas312
Copy link

Error in balance(baP$z, "S") :
BLAS/LAPACK routine 'DGEBAL' gave error code -3
Calls: pmatrix.msm ... MatrixExp -> -> expm.Higham08 -> balance
Execution halted

I got the following error when I tried to use pmatrix.msm() on a model that I fit with specified values for all covariates. An initial sweep on Google didn't return too many results. I'm not sure exactly what the error means or how to avoid it.

Many thanks in advance for all your help,

Matt

@chjackson
Copy link
Owner

Looks like something has gone wrong with the default method used to calculate matrix exponentials, which comes from the expm package.

You can supply arguments to expm through pmatrix.msm. See help(expm::expm) for documentation of them, e.g. pmatrix.msm(..., method="Pade") to change the method used.

More generally when there are numerical errors I'd also check whether the model is sensible, e.g. here does the matrix you are trying to exponentiate contain extreme values that correspond to parameters that are unrealistic in practice?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants