xuyiqing / gsynth

Generalized Synthetic Control Method
Other
131 stars 40 forks source link

An error reported as "the matrix is either rank-deficient or indefinite" #83

Open jesse526 opened 1 year ago

jesse526 commented 1 year ago

When using your fantastic package, I found that it reported the error: "Warning message: In chol.default (mat, pivot = TRUE, tol = tol) : the matrix is either rank-deficient or indefinite." I wonder why does this error occur. If possible, could you tell me how to deal with this error? I would appreciate some feedback on it. Thank you so much!

xuyiqing commented 1 year ago

Dear Jesse,

Could you send me an email with your sample data and code (as well as a panelview plot) in order for us to replicate your error?

Best, Yiqing

On Thu, Nov 10, 2022 at 8:32 PM jesse526 @.***> wrote:

When using your fantastic package, I found that it reported the error: "Warning message: In chol.default (mat, pivot = TRUE, tol = tol) : the matrix is either rank-deficient or indefinite." I wonder why does this error occur. If possible, could you tell me how to deal with this error? I would appreciate some feedback on it. Thank you so much!

— Reply to this email directly, view it on GitHub https://github.com/xuyiqing/gsynth/issues/83, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB2PKGBUKMQRLG7WJJOEPMLWHXD4ZANCNFSM6AAAAAAR5HNKIE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Yiqing Xu

Assistant Professor Department of Political Science Stanford University https://yiqingxu.org/