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
Error in Time Series Plot when laggedHello All! I am working with sectoral employment data pulled from the FRED using "import fred". Aft…
create a table with two "variable-groups" as x- and y-axis and the corresponding returns for each combinationHello I am trying to recreate table1, panel A from Fama & French (2015), which looks as follows…
Repeated random sampling without replacement from a panel dataI have annual stock returns for a number of firms for about 20 years. The total firm-year obs are ab…
perfect prediction issue in mi impute chained with 3-way interaction termI am imputing the interaction terms in a three way interaction using mi impute chained; I use the Ro…
Stepwise Regression IssueHi, I am trying to perform a stepwise regression with a lot of independent variables (790), and wit…
Subscribe to:
Post Comments (Atom)
0 Response to Connect Variables
Post a Comment