Hi,
I needed the mean of var 2 that is dependent on var so inputed this ' bysort var1 : sum var 2" into Stata. This gave me a table with the mean but I would now like to use the different means to create a new variable.
I needed the mean of var 2 that is dependent on var so inputed this ' bysort var1 : sum var 2" into Stata. This gave me a table with the mean but I would now like to use the different means to create a new variable.
Comment