Hi I have a dataset with 48,000 observations (individuals) and about 150 variables. I know the age of each individual (variable "dag") and I have some variables describing different type of income (all these variables start with an "y"). I'd like to say to Stata: "For each individual younger than 18 (dag<18), set each income variable equal to 0 (y*=0)". What could I do? Thank you!
0 Response to Set a number of variables equal to 0 if a condition is verified
Post a Comment