Closed bright1993ff66 closed 1 year ago
Dear Bright,
Currently, it is possible to do bandwidth selection by likelihood cross validation for a TNKDE (see here). The function to use is : _bw_tnkde_cv_likelihoodcalc. However, it will only use global bandwidths and not local bandwidths. I am currently reworking the function to make it possible to use local bandwidths.
So, for the moment, you can select an optimal network and time global bandwidths with the function _bw_tnkde_cv_likelihoodcalc. Be sure to also check visually the results because likelihood cross validation tends to select large bandwidths for bivariate kernel density estimate.
Thanks @JeremyGelb for your prompt reply!
I will check the bandwidth selection method bw_tnkde_cv_likelihood_calc
you mentioned.
Hi @JeremyGelb , I am recently using the tnkde function based on adaptive bandwidth to analyze the spatio-temporal distribution of accident records across the city.
I am wondering if the
tnkde
function can output the optimal spatial and temporal bandwidth values when computing the density values, based on the given arguments such as road network and point distribution? From a nkde example, you mentioned that the bandwidth is computed for each event. Is it possible to obtain a overall bandwidth value in density computation (e.g., mean bandwidth values based on all the events)?The function I refer to is given below. Thank you for your time and help!