IDEAS home Printed from
   My bibliography  Save this article

Standard-error correction in two-stage optimization models: A quasi–maximum likelihood estimation approach


  • Fernando Rios-Avila

    (Levy Economics Institute)

  • Gustavo Canavire-Bacarreza

    (Universidad EAFIT)


Following Wooldridge (2014, Journal of Econometrics 182: 226–234), we discuss and implement in Stata an efficient maximum-likelihood approach to the estimation of corrected standard errors of two-stage optimization models. Specif- ically, we compare the robustness and efficiency of the proposed method with routines already implemented in Stata to deal with selection and endogeneity problems. This strategy is an alternative to the use of bootstrap methods and has the advantage that it can be easily applied for the estimation of two-stage optimization models for which already built-in programs are not yet available. It could be of particular use for addressing endogeneity in a nonlinear framework.

Suggested Citation

  • Fernando Rios-Avila & Gustavo Canavire-Bacarreza, 2018. "Standard-error correction in two-stage optimization models: A quasi–maximum likelihood estimation approach," Stata Journal, StataCorp LP, vol. 18(1), pages 206-222, March.
  • Handle: RePEc:tsj:stataj:v:18:y:2018:i:1:p:206-222
    Note: to access software from within Stata, net describe

    Download full text from publisher

    File URL:
    File Function: link to article purchase
    Download Restriction: no

    Other versions of this item:

    References listed on IDEAS

    1. James W. Hardin, 2002. "The robust variance estimator for two-stage models," Stata Journal, StataCorp LP, vol. 2(3), pages 253-266, August.
    2. Newey, Whitney K., 1987. "Efficient estimation of limited dependent variable models with endogenous explanatory variables," Journal of Econometrics, Elsevier, vol. 36(3), pages 231-250, November.
    3. Arne Risa Hole, 2006. "Calculating Murphy-Topel variance estimates in Stata: A simplified procedure," Stata Journal, StataCorp LP, vol. 6(4), pages 521-529, December.
    4. Terza, Joseph V. & Basu, Anirban & Rathouz, Paul J., 2008. "Two-stage residual inclusion estimation: Addressing endogeneity in health econometric modeling," Journal of Health Economics, Elsevier, vol. 27(3), pages 531-543, May.
    5. White, Halbert, 1982. "Maximum Likelihood Estimation of Misspecified Models," Econometrica, Econometric Society, vol. 50(1), pages 1-25, January.
    6. Murphy, Kevin M & Topel, Robert H, 2002. "Estimation and Inference in Two-Step Econometric Models," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 88-97, January.
    7. Heckman, James, 2013. "Sample selection bias as a specification error," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 31(3), pages 129-137.
    8. John Mullahy, 1997. "Instrumental-Variable Estimation Of Count Data Models: Applications To Models Of Cigarette Smoking Behavior," The Review of Economics and Statistics, MIT Press, vol. 79(4), pages 586-593, November.
    9. Jeffrey M. Wooldridge, 2015. "Control Function Methods in Applied Econometrics," Journal of Human Resources, University of Wisconsin Press, vol. 50(2), pages 420-445.
    10. Wooldridge, Jeffrey M., 2014. "Quasi-maximum likelihood estimation and testing for nonlinear models with endogenous explanatory variables," Journal of Econometrics, Elsevier, vol. 182(1), pages 226-234.
    Full references (including those not matched with items on IDEAS)


    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.

    Cited by:

    1. Fernando Rios-Avila & Gustavo Canavire-Bacarreza, 2020. "The Effect of Immigration on Labor Market Transitions of Native-Born Unemployed in the United States," Journal of Labor Research, Springer, vol. 41(3), pages 295-331, September.
    2. Zabsonre Zacharia & Boukary Ouedraogo, 2023. "Influence of tax structures on income inequality in WAEMU countries [Influences des structures fiscales sur l'inégalité de revenus dans les pays de l'UEMOA]," Post-Print hal-04188709, HAL.

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Caroline Krafft, 2020. "Why is fertility on the rise in Egypt? The role of women’s employment opportunities," Journal of Population Economics, Springer;European Society for Population Economics, vol. 33(4), pages 1173-1218, October.
    2. Anastasia Semykina, 2018. "Self‐employment among women: Do children matter more than we previously thought?," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 33(3), pages 416-434, April.
    3. Silva, Simone & Badasyan, Narine & Busby, Michael, 2018. "Diversity and digital divide: Using the National Broadband Map to identify the non-adopters of broadband," Telecommunications Policy, Elsevier, vol. 42(5), pages 361-373.
    4. Pablo Mitnik, 2018. "Intergenerational Income Elasticities, Instrumental Variable Estimation, and Bracketing Strategies," Working Papers 2018-044, Human Capital and Economic Opportunity Working Group.
    5. Correa, Ricardo & Sapriza, Horacio & Zlate, Andrei, 2021. "Wholesale funding runs, global banks' supply of liquidity insurance, and corporate investment," Journal of International Economics, Elsevier, vol. 133(C).
    6. Ana Silvia de Matos Vas, 2012. "Interpersonal Influence Regarding the Decision to Vote Within Mozambican Households," Economics Series Working Papers WPS/2012-14, University of Oxford, Department of Economics.
    7. Gary Madden & Erik Bohlin & Thien Tran & Aaron Morey, 2014. "Spectrum Licensing, Policy Instruments and Market Entry," Review of Industrial Organization, Springer;The Industrial Organization Society, vol. 44(3), pages 277-298, May.
    8. Trebesch, Christoph & Zabel, Michael, 2017. "The output costs of hard and soft sovereign default," European Economic Review, Elsevier, vol. 92(C), pages 416-432.
    9. Daniela Bragoli & Flavia Cortelezzi & Massimiliano Rigon, 2023. "Firms' innovation and university cooperation. New evidence from a survey of Italian firms," Temi di discussione (Economic working papers) 1400, Bank of Italy, Economic Research and International Relations Area.
    10. Mustafa U. Karakaplan & Levent Kutlu, 2017. "Handling Endogeneity in Stochastic Frontier Analysis," Economics Bulletin, AccessEcon, vol. 37(2), pages 889-901.
    11. Coe, Norma B. & Goda, Gopi Shah & Van Houtven, Courtney Harold, 2023. "Family spillovers and long-term care insurance," Journal of Health Economics, Elsevier, vol. 90(C).
    12. Giuseppe Moscelli & Hugh Gravelle & Luigi Siciliani, 2018. "Effects of Market Structure and Patient Choice on Hospital Quality for Planned Patients," School of Economics Discussion Papers 1118, School of Economics, University of Surrey.
    13. Fitzenberger, Bernd & Furdas, Marina & Sajons, Christoph, 2016. "End-of-year spending and the long-run employment effects of training programs for the unemployed," Freiburg Discussion Papers on Constitutional Economics 16/08, Walter Eucken Institut e.V..
    14. German Blanco, 2017. "Who benefits from job placement services? A two-sided analysis," Journal of Productivity Analysis, Springer, vol. 47(1), pages 33-47, February.
    15. Andrei Sirchenko, 2019. "A regime-switching model for the federal funds rate target," UvA-Econometrics Working Papers 19-01, Universiteit van Amsterdam, Dept. of Econometrics.
    16. John Jerrim & Álvaro Choi & Rosa Simancas Rodríguez, 2014. "Two-sample two-stage least squares (TSTSLS) estimates of earnings mobility: how consistent are they?," Working Papers 2014/35, Institut d'Economia de Barcelona (IEB).
    17. Mello, M. & Moscelli, G., 2021. "Voting, contagion and the trade-off between public health and political rights: quasi-experimental evidence from the Italian 2020 polls," Health, Econometrics and Data Group (HEDG) Working Papers 21/17, HEDG, c/o Department of Economics, University of York.
    18. Mello, Marco & Moscelli, Giuseppe, 2022. "Voting, contagion and the trade-off between public health and political rights: Quasi-experimental evidence from the Italian 2020 polls," Journal of Economic Behavior & Organization, Elsevier, vol. 200(C), pages 1025-1052.
    19. Wei Wang & Kimberly A. Eddleston & Francesco Chirico & Stephen X. Zhang & Qiaozhuan Liang & Wei Deng, 2023. "Family Diversity and Business Start-Up: Do Family Meals Feed the Fire of Entrepreneurship?," Entrepreneurship Theory and Practice, , vol. 47(4), pages 1265-1297, July.
    20. Hirokatsu Asano, 2010. "Estimating irreversible investment with financial constraints: an application of switching regression models," Applied Economics, Taylor & Francis Journals, vol. 42(2), pages 211-222.


    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:tsj:stataj:v:18:y:2018:i:1:p:206-222. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F. Baum or Lisa Gilmore (email available below). General contact details of provider: .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.