Disentangling factors mediating diversity by modeling dynamics from populations to communities.