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
Comparing sub-categories of a categorical variable across two groupsHello. I am trying to create descriptive statistics across two groups (treatment and control) for a …
Exporting table of results of prtest for Two-sample test of proportions using VARIABLES NOT GROUPS !hello, everyone! I cannot find a way to export the results of prtest of a two-sample test of propor…
Drop observations if they have equal values on variable A but different values dummy variable BHello everyone, I would like to drop all observations, that have the same value on variable product…
Merge panel data with same variables but different observationsHi I am trying to merge two different datasets with panel data. One of them contains data about sub…
Append command changes the content of observations of the appended fileI have an issue with the append command. I have a couple of stata files that contain three variable…
Subscribe to:
Post Comments (Atom)
0 Response to comparing the magnitude of two independent variables
Post a Comment