I regressed x1 and x2 on y seperately and jointly. After the joint regression, I want to compare the strength of both variables and which of them correlates stronger with y.
Before I standardize the variables.
egen x1_1=std(x1)
egen x2_1=std(x2)
reg y x1_1 x2_1, robust
test x1=x2
( 1) x1_1 - x2_1 = 0
F( 1, 129) = 62.66
Prob > F = 0.0000
So, the H0 the test equal command is that the variables are equal. Since H0 is rejected I can say that x1 and x2 are significantly different from each other. But I cannot say whether one of them is stronger right? Can I determine that by comparing the correlation coefficients then?
Thanks in advance.
Related Posts with comparing the magnitude of two independent variables
Breslow-day test for odd ratios in mutiple-imputated datasetDear Memders, I want to detect the effect modification of "antihypertensive medcaition" between my …
Breslow-day test for odd ratios in mutiple-imputated datasetDear Memders, I want to detect the effect modification of "antihypertensive medcaition" between my …
nlsur constrained resultsDear statalist members, I used nlsur command to estimate 3 different equations by using panel data,…
nlsur constrained resultsDear statalist members, I used nlsur command to estimate 3 different equations by using panel data,…
predict ancillary parameter after -streg-Hi Statalist, I'm running streg weibull distribution with parametrized ancillary parameter: Code: …
Subscribe to:
Post Comments (Atom)
0 Response to comparing the magnitude of two independent variables
Post a Comment