Context in complex social behavior