Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Stefano Lugo <stefano.lugo@mail.polimi.it> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: R squared of OLS with dummy variables |

Date |
Fri, 06 Jul 2012 10:57:34 +0200 |

Computing the R squared myself with reg y x_a x_b d_1 d_2 d_3, nocons predict fit if e(sample) corr y x di r(rho)^2

Is that a Stata bug or am I missing some theoretical explanation for this? Thank you for your help -- Stefano Lugo, PhD Politecnico di Milano P.za Leonardo da Vinci 32 20133 Milan, Italy * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**Re: st: R squared of OLS with dummy variables***From:*Maarten Buis <maartenlbuis@gmail.com>

**Re: st: R squared of OLS with dummy variables***From:*Nick Cox <njcoxstata@gmail.com>

- Prev by Date:
**Re: st: problem with Levin-Lin-Chu test and the Im-Pesaran-Shin test in stata 12** - Next by Date:
**st: change the format of the pseudo log-likelihood in gb2fit** - Previous by thread:
**Re: st: problem with Levin-Lin-Chu test and the Im-Pesaran-Shin test in stata 12** - Next by thread:
**Re: st: R squared of OLS with dummy variables** - Index(es):