I have many readings from bicycles that measure how close they are to passing vehicles. I’d like to smooth these readings within routes/locations, but not across routes, in order to determine where there are “hot spots”. Say each measurement I have lat, lon, distance to passing car, and travel direction, plus a bunch of traffic (parked car? Bike lane type? What was the passing car type and what was it doing?) and weather controls.
There are two research questions: first, where are the dangerous spots for cyclists? Second: what road conditions/design parameters make for a dangerous spot? We’ve only got 40 cyclists in each city collecting observations, and these cyclists have their own preferred routes. So we’d like to draw inference about possible hot-spots for parts of each city that we’ve not mapped. Assume that we have very high quality (design and traffic) data for the whole city.
How would you smooth routes? Ideally I’d want a person traveling South on one side of the road to have little baring on the smoothed risk estimate of a person traveling North on the same road. So if there are two roads 200m apart, I want them to not influence each other, but two readings on the same route 200m apart, these might influence each other’s smoothed estimate.
Reasonably large number of roads (say 500) across 10k observations in each of 4 cities. I’d want to be able to control for (about 40 in each city) cyclist fixed effects and a bunch of other things (day of the week effects, time of day effects etc). Ideas, spatial analysis people?
Cheers,
Jim