IDEAS home Printed from https://ideas.repec.org/a/eee/jfinec/v99y2011i1p1-10.html
   My bibliography  Save this article

Simple formulas for standard errors that cluster by both firm and time

Author

Listed:
  • Thompson, Samuel B.

Abstract

When estimating finance panel regressions, it is common practice to adjust standard errors for correlation either across firms or across time. These procedures are valid only if the residuals are correlated either across time or across firms, but not across both. This paper shows that it is very easy to calculate standard errors that are robust to simultaneous correlation along two dimensions, such as firms and time. The covariance estimator is equal to the estimator that clusters by firm, plus the estimator that clusters by time, minus the usual heteroskedasticity-robust ordinary least squares (OLS) covariance matrix. Any statistical package with a clustering command can be used to easily calculate these standard errors.

Suggested Citation

  • Thompson, Samuel B., 2011. "Simple formulas for standard errors that cluster by both firm and time," Journal of Financial Economics, Elsevier, vol. 99(1), pages 1-10, January.
  • Handle: RePEc:eee:jfinec:v:99:y:2011:i:1:p:1-10
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0304-405X(10)00192-3
    Download Restriction: Full text for ScienceDirect subscribers only
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Randolph B. Cohen & Christopher Polk & Tuomo Vuolteenaho, 2003. "The Value Spread," Journal of Finance, American Finance Association, vol. 58(2), pages 609-641, April.
    2. Hansen, Lars Peter & Hodrick, Robert J, 1980. "Forward Exchange Rates as Optimal Predictors of Future Spot Rates: An Econometric Analysis," Journal of Political Economy, University of Chicago Press, vol. 88(5), pages 829-853, October.
    3. Kan Li & Randall Morck & Fan Yang & Bernard Yeung, 2004. "Firm-Specific Variation and Openness in Emerging Markets," The Review of Economics and Statistics, MIT Press, vol. 86(3), pages 658-669, August.
    4. A. Colin Cameron & Jonah B. Gelbach & Douglas L. Miller, 2011. "Robust Inference With Multiway Clustering," Journal of Business & Economic Statistics, Taylor & Francis Journals, vol. 29(2), pages 238-249, April.
    5. Rajan, Raghuram G & Zingales, Luigi, 1998. "Financial Dependence and Growth," American Economic Review, American Economic Association, vol. 88(3), pages 559-586, June.
    6. Fama, Eugene F & French, Kenneth R, 2000. "Forecasting Profitability and Earnings," The Journal of Business, University of Chicago Press, vol. 73(2), pages 161-175, April.
    7. Mitchell A. Petersen, 2009. "Estimating Standard Errors in Finance Panel Data Sets: Comparing Approaches," The Review of Financial Studies, Society for Financial Studies, vol. 22(1), pages 435-480, January.
    8. Stambaugh, Robert F., 1999. "Predictive regressions," Journal of Financial Economics, Elsevier, vol. 54(3), pages 375-421, December.
    9. Randolph B. Cohen & Christopher Polk & Tuomo Vuolteenaho, 2003. "The Value Spread," Journal of Finance, American Finance Association, vol. 58(2), pages 609-642, April.
    10. White, Halbert, 1980. "A Heteroskedasticity-Consistent Covariance Matrix Estimator and a Direct Test for Heteroskedasticity," Econometrica, Econometric Society, vol. 48(4), pages 817-838, May.
    11. Newey, Whitney & West, Kenneth, 2014. "A simple, positive semi-definite, heteroscedasticity and autocorrelation consistent covariance matrix," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 33(1), pages 125-132.
    12. Nickell, Stephen J, 1981. "Biases in Dynamic Models with Fixed Effects," Econometrica, Econometric Society, vol. 49(6), pages 1417-1426, November.
    13. Fama, Eugene F & MacBeth, James D, 1973. "Risk, Return, and Equilibrium: Empirical Tests," Journal of Political Economy, University of Chicago Press, vol. 81(3), pages 607-636, May-June.
    14. Borja Larrain, 2006. "Do Banks Affect the Level and Composition of Industrial Volatility?," Journal of Finance, American Finance Association, vol. 61(4), pages 1897-1925, August.
    Full references (including those not matched with items on IDEAS)

    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. Kim, Min Seong & Sun, Yixiao, 2013. "Heteroskedasticity and spatiotemporal dependence robust inference for linear panel models with fixed effects," Journal of Econometrics, Elsevier, vol. 177(1), pages 85-108.
    2. Elif Guneren Genc & Ozlem Deniz Basar, 2017. "The Impact of OECD Countries¡¯ Macroeconomic Factors on Turkey¡¯s Foreign Trade," Research in World Economy, Research in World Economy, Sciedu Press, vol. 8(1), pages 24-36, June.
    3. Cheng Few Lee, 2020. "Financial econometrics, mathematics, statistics, and financial technology: an overall view," Review of Quantitative Finance and Accounting, Springer, vol. 54(4), pages 1529-1578, May.
    4. Blake, David & Caulfield, Tristan & Ioannidis, Christos & Tonks, Ian, 2014. "Improved inference in the evaluation of mutual fund performance using panel bootstrap methods," Journal of Econometrics, Elsevier, vol. 183(2), pages 202-210.
    5. Yu Wang & Haicheng Shu, 2019. "Evaluating the Performance of Factor Pricing Models for Different Stock Market Trends: Evidence from China," Working Papers 2019-10-10, Wang Yanan Institute for Studies in Economics (WISE), Xiamen University.
    6. Linnenluecke, Martina K. & Chen, Xiaoyan & Ling, Xin & Smith, Tom & Zhu, Yushu, 2017. "Research in finance: A review of influential publications and a research agenda," Pacific-Basin Finance Journal, Elsevier, vol. 43(C), pages 188-199.
    7. Yenn-Ru Chen & Carl R. Chen & Chih-Kang Chu, 2014. "The Effect of Executive Stock Options on Corporate Innovative Activities," Financial Management, Financial Management Association International, vol. 43(2), pages 271-290, June.
    8. Maio, Paulo & Xu, Danielle, 2020. "Cash-flow or return predictability at long horizons? The case of earnings yield," Journal of Empirical Finance, Elsevier, vol. 59(C), pages 172-192.
    9. Valentin Haddad & Serhiy Kozak & Shrihari Santosh & Stijn Van Nieuwerburgh, 2020. "Factor Timing," The Review of Financial Studies, Society for Financial Studies, vol. 33(5), pages 1980-2018.
    10. Kothari, S.P. & Leone, Andrew J. & Wasley, Charles E., 2005. "Performance matched discretionary accrual measures," Journal of Accounting and Economics, Elsevier, vol. 39(1), pages 163-197, February.
    11. Dang, Thuy Duong & Hollstein, Fabian & Prokopczuk, Marcel, 2022. "How do corporate bond investors measure performance? Evidence from mutual fund flows," Journal of Banking & Finance, Elsevier, vol. 142(C).
    12. Hollstein, Fabian & Nguyen, Duc Binh Benno & Prokopczuk, Marcel & Wese Simen, Chardin, 2019. "International tail risk and World Fear," Journal of International Money and Finance, Elsevier, vol. 93(C), pages 244-259.
    13. Fratianni, Michele & Marchionne, Francesco, 2013. "The fading stock market response to announcements of bank bailouts," Journal of Financial Stability, Elsevier, vol. 9(1), pages 69-89.
    14. Bansal, Ravi & Dahlquist, Magnus, 2000. "The forward premium puzzle: different tales from developed and emerging economies," Journal of International Economics, Elsevier, vol. 51(1), pages 115-144, June.
    15. Cheong, Calvin W.H. & Sinnakkannu, Jothee & Ramasamy, Sockalingam, 2017. "On the predictability of carry trade returns: The case of the Chinese Yuan," Research in International Business and Finance, Elsevier, vol. 39(PA), pages 358-376.
    16. Zaremba, Adam & Kizys, Renatas & Raza, Muhammad Wajid, 2020. "The long-run reversal in the long run: Insights from two centuries of international equity returns," Journal of Empirical Finance, Elsevier, vol. 55(C), pages 177-199.
    17. Zhang, Yuzhao, 2014. "Contrarian flows, consumption and expected stock returns," Journal of Banking & Finance, Elsevier, vol. 42(C), pages 101-111.
    18. Zaremba, Adam & Mikutowski, Mateusz & Szczygielski, Jan Jakub & Karathanasopoulos, Andreas, 2021. "The alpha momentum effect in commodity markets," Energy Economics, Elsevier, vol. 93(C).
    19. Maio, Paulo & Santa-Clara, Pedro, 2012. "Multifactor models and their consistency with the ICAPM," Journal of Financial Economics, Elsevier, vol. 106(3), pages 586-613.
    20. Zaremba, Adam & Szyszka, Adam & Karathanasopoulos, Andreas & Mikutowski, Mateusz, 2021. "Herding for profits: Market breadth and the cross-section of global equity returns," Economic Modelling, Elsevier, vol. 97(C), pages 348-364.

    Corrections

    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:eee:jfinec:v:99:y:2011:i:1:p:1-10. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/inca/505576 .

    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.