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
Plotting estimates from LincomDear Stata expert, ** Below i am including age as a continuous interaction term. outcome is anemia …
hettest : Different results from regressionHi, I have a model with 3 nominal independent variables. Three dummy variables are used for the firs…
LM Test Result in Random Effect ModelDear members, I'm quite newbie here. I'm so confused in determining the perfect model for my regress…
MV Probit Modelplease, suggest steps for the MV Probit model . Thank you . …
Remove time in datetime variableI have a variable in an imported dataset from Excel in this type and format: type: double format: %t…
Subscribe to:
Post Comments (Atom)
0 Response to Geodist datasets into a panel
Post a Comment