Microeconomics of demographic behavior