<p>The purpose of clustering is to estimate errors that will be consistent with heteroskedasticity or autocorrelation. Hence you should cluster on the level where you believe the autocorrelation or heteroskedasticity occurs.</p>
<p>I do not know the particularities of your problem, but my first guess would be that heteroskedasticity or autocorrelation would be primarily problem at store level.  This being said I can imagine it being issue at market level so some multilevel model might be preferred (have a look at <a href="https://statmodeling.stat.columbia.edu/wp-content/uploads/2009/08/RevisitMoulton_21.pdf" rel="nofollow noreferrer">Cheah 2009</a> it might help you). Also do not forget that that in order for having good estimates of the clustered standard errors you need at least 40 (or as Angrist &amp; Pischke joke in MHE 42) clusters.</p>

CC BY-SA 4.0
2022-02-25T17:19:09.680Z
2022-02-25T17:19:09.680Z
1muflon1
<p>I want to estimate the following model:
<span class="math-container">$Y_{ismr} = \alpha + \gamma O_{sm}+\beta X_{smr} + \epsilon_{ismr}$</span> ,
where <span class="math-container">$Y_{ismr}$</span> is customer <span class="math-container">$i$</span>'s reported level of satisfaction at store <span class="math-container">$s$</span> in market <span class="math-container">$m$</span> in region <span class="math-container">$r$</span>, <span class="math-container">$O_{sm}$</span> is the number of competitors faced by store <span class="math-container">$s$</span> in market <span class="math-container">$m$</span> , and <span class="math-container">$X_{smr}$</span> is a vector of market-level and region-level controls for the market and region that the store <span class="math-container">$s$</span> is in.</p>
<p>The parameter I'm interested in estimating is <span class="math-container">$\gamma$</span>. It says, all else equal, how much a customer's satisfaction rating at a store will improve if that store faces an additional competitor.</p>
<p>My question is: When I run this regression, should I cluster my standard errors by store or by market?</p>
<p>Note 1: I am not worried about endogeneity here as I have reason to believe that, in the specific context I'm studying, the level of competition is exogenously determined.</p>
<p>Note 2: To be clear, there are several different regions of the geographic area I'm studying, each of which has multiple different local markets, in which there can be multiple stores. Each store has been reviewed by a few hundred customers.</p>

<econometrics><regression>
What level should I cluster my standard errors at?
leecarvallo
# What level should I cluster my standard errors at?

(Asked by: username_0 on 2022-02-24)

I want to estimate the following model:
$Y\_{ismr} = \alpha + \gamma O\_{sm}+\beta X\_{smr} + \epsilon\_{ismr}$ ,
where $Y\_{ismr}$ is customer $i$'s reported level of satisfaction at store $s$ in market $m$ in region $r$, $O\_{sm}$ is the number of competitors faced by store $s$ in market $m$ , and $X\_{smr}$ is a vector of market-level and region-level controls for the market and region that the store $s$ is in.

The parameter I'm interested in estimating is $\gamma$. It says, all else equal, how much a customer's satisfaction rating at a store will improve if that store faces an additional competitor.

My question is: When I run this regression, should I cluster my standard errors by store or by market?

Note 1: I am not worried about endogeneity here as I have reason to believe that, in the specific context I'm studying, the level of competition is exogenously determined.

Note 2: To be clear, there are several different regions of the geographic area I'm studying, each of which has multiple different local markets, in which there can be multiple stores. Each store has been reviewed by a few hundred customers.

**Tags:** econometrics, regression

---

## 1 answers

### Answer by username_1 on 2022-02-25. Score: 1

The purpose of clustering is to estimate errors that will be consistent with heteroskedasticity or autocorrelation. Hence you should cluster on the level where you believe the autocorrelation or heteroskedasticity occurs.

I do not know the particularities of your problem, but my first guess would be that heteroskedasticity or autocorrelation would be primarily problem at store level. This being said I can imagine it being issue at market level so some multilevel model might be preferred (have a look at [Cheah 2009](https://statmodeling.stat.columbia.edu/wp-content/uploads/2009/08/RevisitMoulton_21.pdf) it might help you). Also do not forget that that in order for having good estimates of the clustered standard errors you need at least 40 (or as Angrist & Pischke joke in MHE 42) clusters.


---

