I have tree location data (x and y coordinates) with a corresponding insect density for each tree (marks in spatstat) I would like to know if insect density is a function of the distance to edge of each sampling area.