{'fraction_non_alphanumeric': 0.03372243839169909, 'fraction_numerical': 0.0, 'mean_word_length': 5.487394957983193, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Common Errors: How to (and Not to) Control for Unobserved Heterogeneity

Controlling for unobserved heterogeneity (or "common errors"), such as industry-specific shocks, is a fundamental challenge in empirical research.This paper discusses the limitations of two approaches widely used in corporate finance and asset pricing research: demeaning the dependent variable with respect to the group (e.g., "industry-adjusting") and adding the mean of the group's dependent variable as a control. We show that these methods produce inconsistent estimates and can distort inference. In contrast, the fixed effects estimator is consistent and should be used instead. We also explain how to estimate the fixed effects model when traditional methods are computationally infeasible.