Dear all,
I have 3 sets of data - the first is 565,000 gridpoint observations of rainfall, with latitude and longitude and date, the second dataset is 700k gridpoint observations of temperature, latitude and longitude and also date . My third dataset has data on centroids of districts within states, 76 districts within 5 states.
I wish to use the geodist function to find the distance between each gridpoint (565,000 / 700,000 ) and each district (76).
My purpose of doing this is so that I can find out which gridpoint is within 100km of the district centroid, and then finally merge/collapse into a coherent panel dataset where i can calculate weighted average daily rainfall
Each dataset looks like this
Latitude Longitude Rainfall year month day edate
Latitude Longitude Temperature year month day edate
Statename Districtname District ID centroidlatitude centroidlongitude
Would appreciate ideas on how this can be done efficiently, and how to go about it (a mix of collapse, merge and geodist)
Thanks.
Related Posts with Geodist datasets into a panel
Replacing with lagged value.Dear All, I have population data by age brackets(7 age categories *agecats* : 0-14, 15-24, 25-34, 3…
Merger of datasets with different data frequencyHi everyone, I have to merge two datasets: "Monthly data" and "Fundamentals quarterly". The first …
Testing for autocorrelation in a logistic regression analysis with panel dataI am trying scrutinize the relationship between regimetypes (political regimes eg. closed autocracy,…
Difference between Intraclass Correlation and Within R-SquaredHi, I am running the following fixed effects model: xtset acode qdate xtreg recycling loginc logpop…
How to export unit root test results to excel?Hello, We have estout/esttab, outreg2 commands to exports regression output. Is it possible to expor…
Subscribe to:
Post Comments (Atom)
0 Response to Geodist datasets into a panel
Post a Comment