Children under 18 in CPS Household

Thanks Michelle. I think I figured it out. But now I have an additional question regarding single mother households. I am trying to create single mother households in CPS. I followed a previous answer from IPUMS ((how to create a measure for the percentage of children in single-parent households?)

I have followed all the steps until the merge. But the merge keeps error saying year serial do not uniquely identify observations in the using data. I do not have any duplicates (I checked for that). I am not sure if it’s the right way to create single mother households.