Hi statalister,
I would like to reshape "long" a large dataset of 8000 households in which every households (in rows) has up to 35 members. If I reshape long using the usual command, stata creates 8000*35=280 k rows.. This is particularly inefficient because most of these rows are entirely empty: in deed most households have a few members only, a handful of them have 35 members.
How can I simply ask stata to reshape but not reshape empty rows?
Thanks
Related Posts with reshape a large household survey
Monthly Unemployment Rate Calculation for Two Groups of StatesHi, I am working on a project in which I have data from the CPS. I also have data that tells me when…
Creating missing value mechanismsHi, I would have a full dataset with an outcome variable y and a two predictors x1 and x2 and 100 o…
Creating missing value mechanismsHi, I would have a full dataset with an outcome variable y and a two predictors x1 and x2 and 100 o…
Stata 17- Percentages of the total sumHello Everyone, I have a list of individuals and their incomes. I have divided them into 5 quintiles…
Preparing data for competing risksHi everyone I have four variables: Event 1 (1: yes, 0: no), time to event 1 (years); event 2 (1: yes…
Subscribe to:
Post Comments (Atom)
0 Response to reshape a large household survey
Post a Comment