The establishment of foraging flocks in house sparrows: risk of predation and daily temperature