Hey guys,
This is a simple question.
I want to do a one-sided test to find out whether two coefficients from the same regression are the same.
I googled this and get the following code, but I think there maybe something wrong with it, could you guys look into it and tell me why, thank you so much in advance!
test t_m=o_m
local sign_tmom = sign(t_m-o_m)
display "H_0: t_m coef >= o_m coef. p-value ="1-ttail(r(df_r),`sign_tmom'*sqrt(r(F)))
This is a simple question.
I want to do a one-sided test to find out whether two coefficients from the same regression are the same.
I googled this and get the following code, but I think there maybe something wrong with it, could you guys look into it and tell me why, thank you so much in advance!
test t_m=o_m
local sign_tmom = sign(t_m-o_m)
display "H_0: t_m coef >= o_m coef. p-value ="1-ttail(r(df_r),`sign_tmom'*sqrt(r(F)))
Comment