I have entered a categorial variable (country) to a regression and I coded their values in Effect coding (0, 1, -1). In other words, I put them in the regression to get the 'beta' values of the coefficients as in the post-regression contrast (compared to the grand mean). I did the analysis twice, each time another country got the value -1 in order to getting data also about the comparison country.
I ended up getting results of the two regressions with the same coefficients, standard deviations, and significance. Only the value of the beta came out different the two times I ran the regressions. I don't understand how it can be! To my understanding, beta is simply the standardized coefficient.
I attach both outputs, marked a random country, but you can see that in both outputs all the values of all countries are completely identical except the 'beta' values. Array Array
Questions:
A. How can such a situation arise? How is the beta calculated in stata ?
B. How, however, can I get the correct 'beta' values for a categorical variable in the effect coding for comparison to the grand mean? Is there any way to do this in Stata?
Thanks!
Related Posts with different 'Beta' values in the same Effect coding in regression
Grouping dataHi, I am trying to group this range from 'no income to 30,000+'. Criteria is to say the average sala…
reghdfe and quadratic local time trendHi all, I am running a regression using "reghdfe", with state fixed effect (FE), time FE, and state…
Merge/Cross/Joinby/RangejoinDear experts, I have gone through the Stata FAQ and have attempted to explain my issue according to…
Generate dummy = 1 based on other observationsDear Statalisters, I need a dummy variable that = 1 based on other observations of my dataset. I f…
Operationalization of PCA and MCA commands in Index Creation using StataDear Stata users, I hope this post finds you all in good health! I am constructing several types o…
Subscribe to:
Post Comments (Atom)
0 Response to different 'Beta' values in the same Effect coding in regression
Post a Comment