Hi all -
I'm hoping to get help with using geoinpoly. I have two datasets, the first is "lat_long.dta" and has the latitude/longitude coordinates for the home addresses of patients in a database. It has three columns: patient ID, latitude, and longitude. The second dataset, "cbg_fips.dta," was created by appending the census block group shapefiles for all US states from census.gov. The columns are: _ID, _CX, _CY, STATEPF, COUNTYPF, TRACTCE, BLKGRPCE, AFFGEOID, GEOID, NAME, LSAD, ALAND, AWATER.
I am hoping to generate the census block group FIPS code for each lat/long pair using geoinpoly. I ultimately need to create a dataset with patient ID and GEOID. I am struggling to figure out the code to accomplish this. Appreciate any help. Thank you so much!
I'm hoping to get help with using geoinpoly. I have two datasets, the first is "lat_long.dta" and has the latitude/longitude coordinates for the home addresses of patients in a database. It has three columns: patient ID, latitude, and longitude. The second dataset, "cbg_fips.dta," was created by appending the census block group shapefiles for all US states from census.gov. The columns are: _ID, _CX, _CY, STATEPF, COUNTYPF, TRACTCE, BLKGRPCE, AFFGEOID, GEOID, NAME, LSAD, ALAND, AWATER.
I am hoping to generate the census block group FIPS code for each lat/long pair using geoinpoly. I ultimately need to create a dataset with patient ID and GEOID. I am struggling to figure out the code to accomplish this. Appreciate any help. Thank you so much!
Comment