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)
Predicted values with a categorical x continuous interaction in a multilevel model with multiple imputationDear all, I am working with cross sectional survey data from 22 countries with 16965 observations. …
Generating a variable for user pre and post policy changeHI, So I have panel data for 5 years (4,5,6,7,8) and I am evaluating a policy change that happened …
How to create a plot showing the results of an OLS regressionDear all, I ran a panel regression taking the form of y = x1 +x12 + other control variable using …
List of long string varsI am simply looking to get a list of all the different values of a string variable, but some of them…
How to perform PSM without replacement using teffects psmach commandDear all, I want to perform 1:1 nearest neighbourhood PSM wihtout replacement, and get AI variance. …
Subscribe to:
Post Comments (Atom)
0 Response to Hospital beds within distance (geonear)
Post a Comment