Hello Stata experts,
I have multiple variable sets. Each set consists of two variables, e.g., var_a_1, var_a_2, var_b_1, var_b_2, ... var_z_1, var_z_2. I want to compute the difference within the same set (e.g., var_a_1-var_a_2) for all variable sets. There must be a way to do all the computation at once. Could you please help me? Thank you!
Best,
Ji
I have multiple variable sets. Each set consists of two variables, e.g., var_a_1, var_a_2, var_b_1, var_b_2, ... var_z_1, var_z_2. I want to compute the difference within the same set (e.g., var_a_1-var_a_2) for all variable sets. There must be a way to do all the computation at once. Could you please help me? Thank you!
Best,
Ji
Comment