Bookmark and Share

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: Re: st: How do I suppress computation of standard errors in stata gmm function?


From   Richard Williams <[email protected]>
To   [email protected], "[email protected]" <[email protected]>
Subject   Re: st: Re: st: How do I suppress computation of standard errors in stata gmm function?
Date   Wed, 31 Jul 2013 11:34:25 -0500

Certainly, with marginal effects, Stata tends to run much faster if you specify the -nose- option. That might be a nice option to add to a lot of other commands.

At 10:14 AM 7/31/2013, Stas Kolenikov wrote:
I second Howard's experience (and request) here. For some of my
problems, iterations may take several seconds, but after the last
iteration, there's may be a pause for a minute and a half before the
estimates are finally produced. I can only attribute this to the
numeric standard errors computation. This is probably more problematic
with the types of models that I work with which require coding several
dozen parameters as {parameter:_cons}, so the chain rules that make
computations more efficient with instrumental-variable-type moment
conditions cannot be fully utilized.

-- Stas Kolenikov, PhD, PStat (ASA, SSC)
-- Senior Survey Statistician, Abt SRBI
-- Opinions stated in this email are mine only, and do not reflect the
position of my employer
-- http://stas.kolenikov.name



On Wed, Jul 31, 2013 at 9:40 AM, Michael Barker
<[email protected]> wrote:
> Hi Howard,
>
> I don't know of any way to switch off the standard error calculation,
> but I would guess that doing so would not speed up the estimation very
> much. If the GMM estimation is taking a long time, it is probably
> spent in the minimization routine, finding the parameter estimates.
> Once the minimization is complete, all of  the components to calculate
> standard errors (gradients, etc.) have already been calculated.
>
> When you run the estimator once, how much time elapses between the
> final iteration and displaying results? That would be an upper bound
> on the time savings from eliminating the standard error calculation.
>
> Mike
>
>
>
> On Tue, Jul 30, 2013 at 5:44 AM, Howard Smith
> <[email protected]> wrote:
>> I am using the gmm() function interactively in stata, with analytical gradients and two equations.
>>
>> I would like to obtain estimated parameters but not standard errors!
>>
>> This is to speed things up (for bootstrapping for example, but also just to try a few alternative specifications). I guess that computing standard errors takes time.
>>
>> My question then: Is it possible to "switch off" the computation of standard errors? If so, how? I have searched quite a lot to figure this out but can see no reference to it in documentation or in past statalist discussions.
>>
>> Many thanks for any assistance you can offer.
>>
>> Howard Smith
>>
>> *
>> *   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/

-------------------------------------------
Richard Williams, Notre Dame Dept of Sociology
OFFICE: (574)631-6668, (574)631-6463
HOME:   (574)289-5227
EMAIL:  [email protected]
WWW:    http://www.nd.edu/~rwilliam

*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index