Hi everyone,
hope you had a nice Christmas.
I am having some Stata issues and i hope that someone could help me.
I have different household IDs (HHID) in my dataset and per household there are several observations. The HHID is coded as a string and looks like "679Zbdejf987fbsdz89". Then I generated another variable that describes if a person is working or not. Work==1 if the person is working.
My goal is to create a variable that indicates if at least one person from the household is working. I.e. if at least one of the HHID has "679Zbdejf987fbsdz89" at work==1, then a variable should be created for all household members " Does anyone know how I implement this?
Regards,
Jasmin
Related Posts with Connect Variables
filling missing data per id from cells below.Dear Stata Community, I am working with long panel data. I have multiple observations per id. In m…
Oaxaca decomposition (nledcompose): how to deal with categorical Y'sDear all, I am new to the Oaxaca-Blinder decomposition, and I'ld like to know your opinion about ho…
Is it possible to "export delimited" with variable labels instead of variable names?Dear Statalisters, I'm quite new to Stata and I've run into what seems like a very "basic" problem.…
Label variable over multiple linesI want to label multiple variables in my dataset in one command, like below: lab var /// id "ID" //…
Event Study - Loop for calculating CARsHello everyone. I am trying to do a loop to calculate CARs (Cumulative Abnormal returns) for an Eve…
Subscribe to:
Post Comments (Atom)
0 Response to Connect Variables
Post a Comment