Linking ecological theory with data