repository for scripts and manuscript for theory paper relating resource mediated indirect effects to niche differences