Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: st: fit robust regression
From
Kieran McCaul <[email protected]>
To
"[email protected]" <[email protected]>
Subject
RE: st: fit robust regression
Date
Thu, 20 Feb 2014 04:59:16 +0800
....
I haven't used -rregfit- before, but the last few lines in rregfit.ado save R2 and BIC as scalars so they are available as r(bicr) and r(R2).
return scalar scale_factor = `scale'
return scalar deviance = `deviance'
return scalar aicr = `aicr'
return scalar bicr = `bicr'
return scalar R2 = `rregr2'
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Nick Cox
Sent: Wednesday, 19 February 2014 9:34 PM
To: [email protected]
Subject: Re: st: fit robust regression
You sent this before. Once is enough: please see the Statalist FAQ on repeated posts.
-rregfit- is from http://www.ats.ucla.edu/stat/stata/ado/analysis
Please remember to explain where user-written programs you refer to come from. (That applies to -esttab- too.)
If -rregfit- doesn't leave something behind, your only real option is probably to clone the code and add further calculations.
I would be wary of using -rreg- for anything much for reasons outlined e.g. in http://www.stata.com/statalist/archive/2011-01/msg00416.html If they don't apply to your project, so much the better.
Nick
[email protected]
On 19 February 2014 13:19, Michael Riechert <[email protected]> wrote:
> Dear Stata community,
>
> I惴 wondering whether it is possible to store certain variables of the output from the command rregfit. I am doing a bunch of robust regressions applying a loop and summarize all estimates using the command esttab. It would be perfect if I can display the adjusted R-squared and the BIC as additional line within the final table using esttab. But so far, I don愒 figure out how to store the R-square and the BIC out of the rregfit output. I appreciate every hint. Thank you!
>
> Best regards,
> Michael
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/