Impact of social institutions on behavior