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
if & else if syntaxDear Stata users, I wrote a very simple program to caculate efficacy coefficient. The program is as…
calculating or identifying start/stop dates according to a rule with consecutive observationsHi, this is a snap shot of my data set. Code: Code: * Example generated by -dataex-. To install:…
Unexpected error from XTPMG outputHi dear all. I am having an unexpected error message from xtpmg output. I am using Stata 16 for Mac…
Weighting data with AIPW and teffectsHello everyone, Actually, I try to understand how to use an IPW estimator. I have 11 treatments var…
Independent variables change signs when interaction is includedHey stata experts, I am currently writing my master thesis, therefore using stata. I have a question…
Subscribe to:
Post Comments (Atom)
0 Response to How to eliminate male-only households from individual-level data
Post a Comment