Dear Statalist,
I have a dataset with patient IDs and lat/lon data about their residence postal code. I have a second data set with clinic departments and their lat/lon data and the number of hospital beds for each department.
I want to generate a variable in the patient data set that gives me the number of hospital beds within a certain distance.
I looked at this solution via genoear https://www.statalist.org/forums/for...using-lat-long and it works perfectly to generate the number of departments in a radius (which I'm also interested in) but how can I sum the hospital bed numbers instead of counting the number of departments?
Related Posts with Hospital beds within distance (geonear)
N-way table with means and t-statistics for sorted portfoliosDear Stata forum members, I am struggling with generating a three-dimensional table with mean retur…
Merging datasetshello i'm trying to merge two datasets but I'm not sure if what I'm trying to do (which is not worki…
xtabond 2: dynamic model and coefficient changesHello everyone, I need some help regarding dynamic and static panel data. So, I have done my regres…
Generating table of means by two groupsHello, I am working with trade data, and need to generate a table of means of one variable, by two…
Help with merging aggregate data to survey dataDear Stata list members, I am currently trying to add several macro indicators from the Eurostat da…
Subscribe to:
Post Comments (Atom)
0 Response to Hospital beds within distance (geonear)
Post a Comment