Hi,
I would be grateful for any advice on the following:
I am running the command reg several times in Stata 14 using 3 variables per regression.
Within each regression the dependent variable is Y at timepoint2, then the first independent variable X1 is treatment and the second independent variable X2 is the baseline value of Y.
For every regression the Ys and X2s correspond to different variables and only treatment is the same across all models
How can I construct a loop which will correctly substitute the Ys and X2s from my variable list for every regression I am fitting.
Thank you,
Nick
I would be grateful for any advice on the following:
I am running the command reg several times in Stata 14 using 3 variables per regression.
Within each regression the dependent variable is Y at timepoint2, then the first independent variable X1 is treatment and the second independent variable X2 is the baseline value of Y.
For every regression the Ys and X2s correspond to different variables and only treatment is the same across all models
How can I construct a loop which will correctly substitute the Ys and X2s from my variable list for every regression I am fitting.
Thank you,
Nick
Comment