Hi All
This is my first post but I have learnt a lot from this forum in previous years.
I am trying to estimate a Spatial Panel Model (25 countries and 120 months). I defined the panel/sp setting according to the SP manual from STATA. My W matrix is user defined based on trade flows from these countries. To import and read the W matrix I followed this steps: https://www.statalist.org/forums/for...port-csv-files
However, when I try to estimate the panel model (using spxtregress) I have the error "insufficient number of observations".
I read in the manual (https://www.stata.com/manuals/spspmatrixcreate.pdf) that when working with panel "We must restrict spmatrix create to one observation per panel, which is easy to do using an if statement" Thus, the W matrix will be appropriate for creating spatial lags for any year.
I think I am missing this step but there is no instructions of how set up W matrix when is imported (from csv/txt). I would appreciate any suggestion.
Thanks
Related Posts with Spatial Panel Model: How use W matrix when is defined by user?
Event study graph for multiple coefficientsI have an individual-level dataset where each row corresponds to a birth, with information on exact …
No observations error "r2000"Hello, I searched on various forums regarding the "no observations r2000 error" but can't seem to so…
Testing the Assumptions of Multilevel ModelsHello!
I want to know if Stata has a command to calculate the level 2 residuals. I want to test the …
Fixed effects month dummies: How to combine them all in one variable?Dear community,
For an assignment: "include now in the regression fixed effects for borrowers’ coun…
EgarchHello everyone,
I wanted to run a mean equation using OLS with robust s.e.,, like below:
reg ir L.…
Subscribe to:
Post Comments (Atom)
0 Response to Spatial Panel Model: How use W matrix when is defined by user?
Post a Comment