Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: A question about -regress-


From   Antoine Terracol <[email protected]>
To   [email protected]
Subject   Re: st: A question about -regress-
Date   Wed, 16 Jan 2008 16:41:10 +0100

e(df_m) is what Louis is looking for, Maarten made a confusion with e(df_r)


. sysuse auto, clear
(1978 Automobile Data)

. quietly regress price mpg weight

. di e(N)
74

. di e(df_r)
71

. di e(df_m)
2


Antoine



Louis Boakye-Yiadom wrote:

Thanks for the reply. Actually, what I am really
looking for is the number of estimated parameters. I
am writing a do file to carry out a Chow/Wald test and
I'm having difficulty generating a variable for the
number of estimated parameters. Any help will be
appreciated. Thanks.

Louis


--- Maarten buis <[email protected]> wrote:

--- Louis Boakye-Yiadom <[email protected]> wrote:
In the results generated by -regress-, is e(df_m)
equivalent to the number of estimated parameters
less
1?
No, it is the number of observations minum the
number of
estimated parameters (including the constant). so it
is
N-1 in a regression without explanatory variables
(in which case -regress- does nothing else than provide
an estimate of the mean).

Hope this helps,
Maarten



-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------



__________________________________________________________
Sent from Yahoo! Mail - a smarter inbox
http://uk.mail.yahoo.com

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/



      ___________________________________________________________
Support the World Aids Awareness campaign this month with Yahoo! For Good http://uk.promotions.yahoo.com/forgood/
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


--
Ce message a ete verifie par MailScanner
pour des virus ou des polluriels et rien de
suspect n'a ete trouve.

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index