Dear all,
I would need help setting up a dataset for STATA correctly.
I would like to perform a spatial autoregression using panel data. The interface available on STATA 16 is very intuitive, but I didn't understand how to set the dataset and in particular the shapefile to use (for the calculation of the spatial matrix).
In particular, my dataset refers to data distributed in space (38 contiguous polygons) and in time (1995-2017). I made sure that there were no temporal and spatial holes within the dataset.
The dataset is composed of a set of variables including the case identification ID (from 1 to 874), an ID_plan (from 1 to 38) which identifies the polygon in which each case falls in each year considered, and the variable YEAR.
The database is linked to a shapefile built for overlapping maps, since the cases (38 polygons) are repeated in the same position for each year (23 years).
I have a doubt; if the shapefile setting is correct since I can't set spset and xtset correctly as the IDs are different.
Thank you for your attention and I hope someone can help me.
Related Posts with Spatial autoregressive model + panel
Long data format: How to count individuals and not observations?Dear all I have a problem with my data set that I hope you can help me solve. My dataset is in lon…
Twoway Kdensity Plot – Truncate X-AxisDear Statalisters, I am using Stata 15.1 MP on a Windows 10 PC and face the following problem: I wa…
how to build the GLLAMM model???pLEASE HELP ME ID TIME_POINT A B C 1 0 5 10 10 1 1 25 25 25 1 2 50 50 25 2 0 50 25 25 2 1 25 75 75 2…
Average Marginal Effects - Recursive Bivariate ProbitDear Statalisters, I would like to calculate the average marginal effects from a recursive bivariate…
margins and interpretation of the interaction between two variables one of which in log transformedHi all, I have two questions I was hoping to get some help: 1) I have a panel(longitudinal) model …
Subscribe to:
Post Comments (Atom)
0 Response to Spatial autoregressive model + panel
Post a Comment