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)
Factor variable notation: How to omit the base period in event study?Hello everybody, I am trying to run an event study model, i.e. I want seperate coefficients of a co…
Correcting the condition for the creation of a new variable based on a duration since an initial assessementHello All, I hope this message finds you well! I have longitudinal unbalanced data and I am trying…
Re-coding 2 race/ethnicity variablesHello, I have a survey with 2 variables related to race/ethnicity I need to re-code. The first (lab…
mibeta interpretationI have a question regarding the output that I get with the mibeta commad. I ran mibeta on multiple i…
Is it posible to make a math formula on a twoway tab?Hi. I'm having a little problem with the tab option. I have data that is presented like this: REG…
Subscribe to:
Post Comments (Atom)
0 Response to Hospital beds within distance (geonear)
Post a Comment