Dropping mothers' records without dropping the child's [message #9073] |
Sat, 06 February 2016 03:32 |
Alinoor
Messages: 6 Registered: January 2016 Location: Jigjiga
|
Member |
|
|
hey there,
i'am using 2011 Ethiopia data set particularly child record. as we know it's one record per child and much of the mother's information is attached to the child's record. if i want to drop an observation based on one of the maternal characteristics without dropping child's, how can i do it?
for instance i tried to keep the height measurements of those mothers with only one child but ended up dropping child records too:
replace v438=1 if (hwidx~=1)
tab v438
drop if v438==1
tab v438
thank u
Alinoor
|
|
|