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
Stochastic Search and Optimization in StataDear all, I am having a panel data of some quality indicators say ind1 ind2 it's up to ind8 and som…
Can I take fixed effects( such as country id) as a continues covariate to controlHi guys, I am using a cross-section data to run 2sls regression. And there is a bunch of dummies com…
Interpreting the coefficients using "one standard deviation"This regression measures the impact of the log change in competition (measured in # competitior bank…
How to plot these graphs?Dear all, I want to plot two graphs shown pictures below. I would appreciate if anyone can help me …
reshaping Code: * Example generated by -dataex-. To install: ssc install dataex clear…
Subscribe to:
Post Comments (Atom)
0 Response to Geodist datasets into a panel
Post a Comment