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
Running regression including fixed effects and clustered standard errorsHello everyone, i have panel data on a monthly basis over a time span of 14 years for 26 cities. Si…
Interaction Effect versus Sub-Group AnalysisHello, I have a basic modelling question related to an analysis I am running using STATA. I do real…
teffects nnmatch: how to get matched observations via gen() despite some unmatched observationsHi all, I am using teffects nnmatch to match treated units with several controls units. My goal is …
How to reduce the size of large data files in Stata?I have a dataset on "effects of marijuana on mental health" and it has 9 lac observations. Now I ass…
command lasso is unrecognizedDear all I am trying to run the following lasso command: lasso linear outcome $controls, rseed(123…
Subscribe to:
Post Comments (Atom)
0 Response to Connect Variables
Post a Comment