Hi all,
Apologies in advance, I'm an inexperienced undergrad.
I have a dataset which has 1 household identifier variable, hhid, 2 profit variables (before an intervention, labeled profit_bl, and after an intervention, labeled profit_el) and 1 binary variable which indicates whether the observation was before or after the intervention, followup.
Seeing as the values of profit_el and porfit_bl for each household member are the same, I want to reduce the observations in profit_bl and profit_el to 1 per household so that the baseline and endline profit values belong to the same observation. Previous threads have suggested using tag() with hhid but it seems a little more complex than that.
Here is a screenshot of the data in the 'browse' tab:
Array
Thanks very much in advance!
Dan
Related Posts with Condense household observations
Checking residuals and heteroskedasticityHi, everyone! I'm happy to find this forum as a student in master course. I want to ask 2 questions…
how to categorize into categorical variables based on the cut-points where the observed distribution crosses over the normal distribution?Hi everyone! I am looking for some advice on how to categorize into categorical variables of differ…
Dropping every ID when respondent go from "work" to "retirement"Hi In the data below the ID's is sorted in Waves (years). The Retirement variable can take 3 values…
Panel data mixed logit modelHi All I am attempting to calibrate a panel data mixed logit model. Can the time variable (which ne…
Control time effects for quarterly dataHi everyone, I'm a student and I am quite new to Stata. I'm doing my thesis and being stuck at this…
Subscribe to:
Post Comments (Atom)
0 Response to Condense household observations
Post a Comment