Thanks, Chris, this is great info!
I reran my code for different datasets and the pkde() seems to be working and the UDS look more reasonable, so that is good news! However, I ran into an error message on a couple of datasets using the same code after running pkde(): "Error in rep(0, gridsize - 1) : invalid 'times' argument." My input data are in the same format for ones that look like they run successfully and ones that throw the error.
The error also occurs for the example dataset I shared earlier on dropbox. I amended the code at the end to show the steps, though it is just using PKDE <- pkde(data_tel, UDS) instead of the mean(UDS) at the last line.
I'm interested in learning more about the pkde(), so if there are any materials that is available for others that are unable to attend your upcoming talk at TWS or other related references, please let me know.
Thanks again for your quick response!
Best,
Connie