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
getting a sample sizehi, I'm trying to get the sample size of black women from my data set. I created a black women(bw) …
traj command with hierarchical data structureI'm interested in using the user-written traj command (link below) to identify latent trajectories o…
Generate variables with forvalsHello Statalist, I have a dataset which contains the following variables: firm (every firm has an as…
Dipendent Double-Sorting 25 PortfoliosDear all, I am struggling to replicate the FF-25 portfolios with a variant, I should employ a depend…
Cluster Randomized Controlled TrialI have a question about the Cluster Randomized Controlled Trial. Is it recommended to perform the sv…
Subscribe to:
Post Comments (Atom)
0 Response to Connect Variables
Post a Comment