famuvie / breedR

Statistical methods for forest genetic resources analysts
http://famuvie.github.io/breedR/
GNU General Public License v3.0
31 stars 24 forks source link

function for diagnosing competition #71

Open famuvie opened 8 years ago

famuvie commented 8 years ago

Implement a function to produce a scatter plot of residuals vs neighbouring (weighted) mean of residuals from a fitted model, as a diagnosis for competition.

This scatter plot should ideally come from a bivariate Normal distribution. Report the observed correlation, and a corresponding p-value.

This function would also useful for diagnosing spatial autocorrelation at short range.