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)
Command collapse AND keeping the original datasetDear all, I was just thinking about this: When you analyze hierarchical structured dataset (for exa…
How to define date from 2000 in StataDear all, I need to calculate age using date of birth (dob) and survey submission date (end_date). …
How to flag observations that have a certain charateristic in one round but do not have that characteristic in any of the subsequent rounds?Hi everyone, Please consider the following data Code: * Example generated by -dataex-. To install: …
How to use categorical variable in dynamic panel regression?Hello, I am using a country variable, called "targetcountry" in my dynamic panel regression. This v…
Esttab with longtable optionI am exporting a regression table to LaTeX using the community contributed esttab command with longt…
Subscribe to:
Post Comments (Atom)
0 Response to Hospital beds within distance (geonear)
Post a Comment