Quantifying and Detecting Patterns of Association in Ecological Communities