Hello,
I am making this estimation:
label define Blev 0 "Low" 1 "High"
label values B Blev
reg Y c.A##c.A##i.B C, robust cformat(%6.2fc)
I was told to use the following commands to analyze the results. I need help to interpret the commands and the results from these commands.
margins B, at(A=(.12(0.10).72))
The results from this command show the predicted values of Y at different levels of A for both levels of B. Significant P-values mean the predicted values are different from zero. Correct?
margins r.B, at(A=(.12(0.10).72))
This command calculates the differences in the predicted values of the two levels of B and tests if these differences are significant. Correct?
margins B, dydx(A) at(A=(.12(0.10).72))
Can you help me understand what the command above does exactly and why it could be relevant?
margins r.B, dydx(A) at(A=(.12(0.10).72))
Same question here.
Please find the data below.
Thank you so much!
I am making this estimation:
label define Blev 0 "Low" 1 "High"
label values B Blev
reg Y c.A##c.A##i.B C, robust cformat(%6.2fc)
I was told to use the following commands to analyze the results. I need help to interpret the commands and the results from these commands.
margins B, at(A=(.12(0.10).72))
The results from this command show the predicted values of Y at different levels of A for both levels of B. Significant P-values mean the predicted values are different from zero. Correct?
margins r.B, at(A=(.12(0.10).72))
This command calculates the differences in the predicted values of the two levels of B and tests if these differences are significant. Correct?
margins B, dydx(A) at(A=(.12(0.10).72))
Can you help me understand what the command above does exactly and why it could be relevant?
margins r.B, dydx(A) at(A=(.12(0.10).72))
Same question here.
Please find the data below.
Thank you so much!
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input double(A Y) byte(B C)
.222222222222222 6.125 0 9
.4 6.16666666666667 0 15
.466666666666667 6.30555555555556 1 15
.466666666666667 6.125 0 15
.357142857142857 6.86363636363636 1 15
.4 6.43181818181818 1 15
.428571428571429 6.21428571428571 0 14
.583333333333333 6.45833333333333 1 11
.294117647058824 5.88888888888889 1 17
.461538461538462 6.54545454545454 1 13
.375 6.41666666666667 1 8
.461538461538462 6.65625 0 13
.454545454545455 6.08333333333333 0 11
.545454545454545 6.25 0 11
.3125 6.2 0 14
.5 6.25 0 8
.571428571428571 6.425 0 14
.529411764705882 6.69230769230769 1 17
.2 6.04166666666667 0 10
.4 6.85 0 10
.571428571428571 6.32142857142857 0 14
.5 6.52272727272727 1 16
.307692307692308 6.5625 1 13
.357142857142857 6.17857142857143 0 14
.4375 6.55555555555556 0 16
.5 6.40625 1 16
.454545454545455 6.375 0 11
.454545454545455 6.65625 1 11
.375 6.75 1 8
.461538461538462 6.79545454545454 1 13
.444444444444444 6.40625 1 9
.428571428571429 6.57142857142857 1 14
.285714285714286 6.5 1 7
.285714285714286 6.58333333333333 1 7
.533333333333333 6.625 1 15
.333333333333333 6.25 1 15
.5 5.45 0 10
.444444444444444 6.5 1 9
.466666666666667 6.41666666666667 0 15
.5 6.47222222222222 1 14
.5 6.3125 0 13
.333333333333333 6.11538461538461 0 15
.333333333333333 6.33333333333333 0 15
.416666666666667 6.36111111111111 0 12
.285714285714286 6.5 1 7
.545454545454545 6.69444444444444 1 11
.428571428571429 6.29166666666667 1 7
.428571428571429 6.75 1 7
.333333333333333 6.32142857142857 0 15
.454545454545455 6.41666666666667 0 11
.428571428571429 6.83333333333333 1 8
.25 7 1 8
.5 6.29166666666667 1 12
.333333333333333 6.17857142857143 0 12
.5 6.7 0 10
.571428571428571 7 1 7
.25 6.5 1 12
.2 6.65 1 10
.363636363636364 6.54166666666667 1 11
.444444444444444 6.46875 0 9
.4375 6.25 1 16
.384615384615385 6.25 0 13
.545454545454545 6.53571428571428 1 11
.5 6.75 1 12
.4 6.34375 0 15
.416666666666667 6.375 1 12
.428571428571429 6.55 1 7
.555555555555556 5.35 0 9
.416666666666667 6.91666666666667 1 12
.416666666666667 6.25 1 12
.357142857142857 6.59375 0 14
.529411764705882 6.52272727272727 1 17
.571428571428571 6.52777777777778 1 14
.363636363636364 6.45 1 11
.363636363636364 6.60714285714286 1 11
.545454545454545 6.5 1 11
.555555555555556 6.5 0 9
.555555555555556 6.7 1 9
.545454545454545 6.625 0 11
.181818181818182 5.8 0 11
.384615384615385 6.125 0 13
.375 6.5 1 16
.4 6.35 0 15
.533333333333333 6.375 0 15
.5 6.5 1 16
.428571428571429 6.83333333333333 1 7
.4 6.5 0 5
.466666666666667 6.5 1 15
.5 6.28571428571428 1 12
.714285714285714 5.83333333333333 0 7
.153846153846154 6.55555555555556 1 13
.615384615384615 6.63888888888889 1 13
.4 6.78125 1 15
.444444444444444 6.35 1 9
.4375 6.225 0 16
.384615384615385 6.53125 0 15
.470588235294118 6.71153846153846 1 17
.538461538461538 6.89285714285714 0 13
.444444444444444 5.75 0 9
.5 6.625 0 16
end

Comment