Dear Stata Users,
I am new to Stata.
I have a Census dataset on individuals, that are identified per household numbers. To reduce the size of my dataset, I want to drop all male-only households.
I tried something like drop per hh_id if sex == 1, but obviously this doesnt work.
Any hint on where I could find the right command?
Thank you very much in advance.
Related Posts with How to eliminate male-only households from individual-level data
String variable with nonnumeric and numeric categoriesI have a string variable with 3 categories (0,1,NA). I would like to desiring the variable, and chan…
Creating new variable with countsI'm using a dataset with 6 variables measuring different complications a participant could have had.…
Generating weighted averages for subgroupsDear all, I am currently working with a country year panel dataset, which has the following variabl…
Computing spatial weights for Moran's I #spmap #shp2dta #spatwmatDear Statalist, I am doing district level analysis (640 districts) on various health related indica…
Accessing temporary file produced by -crtrees- in mataHi, I am trying to access a temporary file (matatrees) produced by the -crtrees- command in stata. …
Subscribe to:
Post Comments (Atom)
0 Response to How to eliminate male-only households from individual-level data
Post a Comment