I really need help with a Stata command.
I have dataset with a subject identifier, say a mother (RRXX in table). They have just had babies. Some mothers had singletons whilst some had twins or triplets. I want to count all mothers who had babies whose birthweight were all less than 1.8kg. If a mother has a singleton and the bwt is less than 1.8kg, she will be counted but if she had twins or triplets and one or two had bwt>1.8, she will not be counted. That is to say, all the children she had should be <1.8kg in weight for her to qualify. This table might help clarify:
Any help will be welcome.
You may leave the list at any time by sending the command
to [log in to unmask], leaving the subject line blank.