You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
BLAS/LAPACK routine 'DGEBAL' gave error code -3 #28
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.
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?
Activity
chjackson commentedon Oct 28, 2020
Looks like something has gone wrong with the default method used to calculate matrix exponentials, which comes from the
expmpackage.You can supply arguments to
expmthroughpmatrix.msm. Seehelp(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?