Mother with/without children variable

Thank you for sharing this code! As my colleague Isabel said in the other thread, we will review and modify the code as necessary. I’m sure that this will be helpful for users who can adapt the code for any other age threshold that is relevant in their work.

One aspect to be aware of in this approach is that some households with same-sex couples have two mothers identified for the same child; IPUMS USA offers the variable MOMLOC2 for identifying the second coresident mother.