Hello everyone and thanks in advance for the help,
I have a database which is divided in 4 groups, captured by a variable which takes values 1-4.
I have to run a regression a check if the parameter of the variable X takes different values between the groups
My idea is to to run the regression with the option by(group_var). With this, I get the same regression over the 4 sub-samples.
Then I must find a way to tell Stata to t-test the difference between the _b[X] of each group.
Any advice?
I have a database which is divided in 4 groups, captured by a variable which takes values 1-4.
I have to run a regression a check if the parameter of the variable X takes different values between the groups
My idea is to to run the regression with the option by(group_var). With this, I get the same regression over the 4 sub-samples.
Then I must find a way to tell Stata to t-test the difference between the _b[X] of each group.
Any advice?

Comment