Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How does Stata compute R-square when it runs an OLS with no constant on an fixed dependent variable?

    To replicate this, please see the code below:

    Code:
    clear
    set seed 123
    set obs 1000
    gen x=rnormal()
    gen one=1
    reg one x, noconstant

    I can understand the beta coeffients as the least squares estimate in this setup. But R-square has SS(Total) in the denominator, which is 0 in this setup. Then, what is stata outputting here?
    There are some other related issues I have with this output but I think I can resolve them if I understand what Stata is doing to compute R-square.
Working...
X