I would like to look at aid effectiveness, by looking at whether 1) the aid projects are placed were the child mortality is the highest and 2) If a respondents geographical proximity to a project reduces child mortality. I have two datasets. Dataset1 contains the latitude and longitude of aid-projects, and dataset 2 contains the latitude and longitude of the respondents (they are put inside clusters in order to not reveal their identity). I would like to set a radius of 25km from each respondent (data2) and see how many projects are within this radius, and the name of these projects. I have seen tips on how to calculate distances within the same dataset (R - Finding closest neighboring point and number of neighbors within a given radius, coordinates lat-long), but not a good tip on how to calculate the distance between two datasets. Does anyone have any insights as to how I might solve this problem? I have some experience with R, but I´m still pretty newbie! The datasets contains 1593 aid-projects and 267 respondent-clusters. Examples of tree longitude/latitude-coordinates are given below:
Dataset 1 - Aid projects - Latitude, longitude (0.75 , 34.08333 ; 2.85604 , 32.43001 ; 1.78481 , 33.59432)
Dataset 2 - Respondents data (clusters)- latitude, longitude (2.34240627, 32.64138 ; 2.18839338, 32.65868; 2.04988464, 32.87160)
Any help would be very much appreciated!!
Best regards,
Synnøve