I am looking into Spatial Neighbors to address autocorrelation in my dataset, but I find it difficult to find arguments as to which method to prefer. I am using the R package "spdep" and functions dnearneigh and knearneigh to determine the distance-based neighbors and k-nearest neighbors, respectively. However, could someone advise me on the main differences between the two methods, as well as on how to determine d2 (upper distance bound) and k (number of nearest neighbors).