JeremyGelb / spNetwork

An R package to perform spatial analysis on networks.
GNU General Public License v2.0
35 stars 2 forks source link

Adaptive Bandwidth in Temporal Network Kernel Density Estimation #17

Closed bright1993ff66 closed 1 year ago

bright1993ff66 commented 1 year ago

Dear @JeremyGelb , Thanks again for creating such a great package for GIS analysis!

I am using tnkde to analyze the kernel densities of collision records in the city. However, I am not sure if I understand the adaptive bandwidth in this case clearly. In the nkde function, the adaptive bandwidth is computed as the following:

image

My question is in the tnkde case, does $h_0$ become a vector of reference bandwidth in space and time ($h0 = [h{0, space}, h{0, time}]$)? Since both $\gamma{f}$ and $\tilde{f}h_0(e_i)$ are still float numbers, the $h(ei)$ now also becomes a vector of bandwidth $[h{ei, space}, h{e_i, time}]$ for event $e_i$?

Thank you for your time!

JeremyGelb commented 1 year ago

Hello @bright1993ff66 ,

There are two ways in spNetwork to use adaptive bandwidth for TNKDE : separated and simultaneous.

In the first case, for each event, a local temporal bandwidth is calculated for each event location (Uei) based on the densities calculated in time with h0 the reference bandwidth in time. Then the same thing is done with the spatial (network) dimension. In this case, you consider that space and time are not interacting (weak spatio-temporal autocorrelation) image

In the second case, the spatio-temporal density is estimated at each event location using simultaneously the time and network reference bandwidths. Then, the temporal and network bandwidths are obtained by replacing h0 in the above formula. image

I have written a paper presenting formally the TNKDE and it was just accepted in the journal Geographical Analysis. I will share with here the submitted manuscript as soon as possible. It gives a detailed description of the method.

bright1993ff66 commented 1 year ago

@JeremyGelb Thanks! And Congrats on your paper acceptance!

Looking forward to reading your paper 👍

JeremyGelb commented 1 year ago

The paper is now published and open access here : https://onlinelibrary.wiley.com/doi/10.1111/gean.12368