(I wrote this for the students in my undergraduate lecture course Introduction to Social Demography. They are working with IPUMS-USA for a final project. I thought it might be of more general interest to others who are using IPUMS-USA for each.) We often want to calculate the proportion of people with some characteristic according to…