Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • xsmle code shows conformability error

    I tried running the xsmle code and it returns the following error. I would like to know if the problem is with the weighting matrix or the panel dataset. Panel dataset is strongly balanced. Kindly suggest a way out.
    Code:
    spmat import myobj using 2011cut.gwt, geoda
    spmat getmatrix myobj W
    getmata (x*)=W
    spmat save myobj using a.dta, replace
    
    
    spmat dta q x*, normalize(row)
    
    spmat summarize q
    spmat summarize q, links
    spmat summarize q, links detail
    
     xsmle a pe t h p w po f a n i.month, fe wmat(q) emat(q) model(sac)
                           *:  3200  conformability error
                _xsmle_est():     -  function returned error
                     <istmt>:     -  function returned error
    r(3200);

  • #2
    Hi Monica,

    I had the same problem and just figured it out so I thought I might chime in, if not for you, then for future users with the same problem. Here's how I fixed it:

    1) Make sure your data is strongly balanced
    2) Make sure the matrix you build using spmat has the right dimensions
    ---> this is where it went wrong for me. I built the matrix on the original dataset, but after balancing the panel this meant that some of the observations were dropped and the two did not match anymore.

    hope this fixes your (or anyone's) problem!

    gr

    G

    Comment

    Working...
    X