0

I wanted to get beta coefficients in my panel data random effects regression model in Stata. But then I noticed that the option "beta" is not allowed in the xtreg command.

It made me think if it is probably wrong to want standardised coefficients in a random effects model?

my model looks something like this -

xtreg y x##z, re
Nick Cox
  • 35,529
  • 6
  • 31
  • 47
tish
  • 3
  • 2
  • It is really hard to understand what you are seeking here. I would suggest that you edit your post and provide a clearer explanation. – Mike Apr 03 '21 at 22:45
  • This question really seems like it's more about the random effects model than about Stata coding. I bet you'd get a more informative answer on stats.stackexchange.com. – max norton Apr 05 '21 at 21:32

1 Answers1

0

You can manually get standardized coefficients by 0-1 standardizing your variables before the command:

foreach v of varlist x y z {
   qui sum `v'
   replace `v' = (`v'-`r(mean)') / `r(sd)'

xtreg y x##z, re
Dharman
  • 30,962
  • 25
  • 85
  • 135
Jonathan Old
  • 311
  • 1
  • 5