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?
Number of parameters in exploratory factor analysisHi everyone. Below is the output of an exploratory factor analysis using the command factor and the …
Internal validation of risk prediction model - Bootstrapped method.Dear expert. I am testing accuracy of a risk score (Continious) on predicting mortality (binary 0:1)…
if [varname] = [values]?Hello, I have a variable, date that is empty. and a series of other date variables that contain dat…
retrospective power analysis on panel dataHi statalisters ... I need some help to carry out a power test over data I obtained from one experim…
Help with a detailed specification using multiple imputationHello, I am attempting to estimate a model: Code: logit y x1 x2 x3 where x1 is a dummy variable…
Subscribe to:
Post Comments (Atom)
0 Response to Spatial Panel Model: How use W matrix when is defined by user?
Post a Comment