<blockquote>
<p>If I plan on analyzing the data using xtreg, fe and controlling for time fixed effects, how should this be done for monthly data? Is including i.monthly_date sufficient to control for seasonality in xtreg, fe</p>
</blockquote>
<p>In principle such monthly fixed effects would absorb the seasonal effects. However, there are other things to consider. These monthly fixed effects will cost you a lot of degrees of freedom. Depending on your dataset size and other characteristics, and other research details there could be better ways to control for seasonality. It’s difficult to give more specific advice without seeing the data.</p>
<blockquote>
<p>If I intend to seasonally adjust the series before running regressions, should I use the predicted residuals or fitted values as the adjusted series? After running reg x i.monthly_date, should I use predict adj_series, residuals or predict adj_series, xb to get the seasonally adjusted values? Additionally, is the regression reg x i.monthly_date enough to adjust for seasonality?</p>
</blockquote>
<p>If you are seasonally adjusting the series using some model of course you should use the fitted values from that model. I am not sure what your rationale for using residuals would be.</p>
<p>In principle <code>reg y x i.monthly_date</code> is sufficient to control for seasonal effects.</p>

CC BY-SA 4.0
2024-07-22T11:27:49.403Z
2024-07-22T11:27:49.403Z
1muflon1
<p>Apologies if this seems mundane.</p>
<p>I have monthly data on 65 regions and I want to seasonally adjust it using seasonal dummies in Stata. I have two questions:</p>
<ol>
<li>If I plan on analyzing the data using <code>xtreg, fe</code> and controlling for time fixed effects, how should this be done for monthly data? Is including <code>i.monthly_date</code> sufficient to control for seasonality in <code>xtreg, fe</code>?</li>
<li>If I intend to seasonally adjust the series before running regressions, should I use the predicted residuals or fitted values as the adjusted series? After running <code>reg x i.monthly_date</code>, should I use <code>predict adj_series, residuals</code> or <code>predict adj_series, xb</code> to get the seasonally adjusted values? Additionally, is the regression <code>reg x i.monthly_date</code> enough to adjust for seasonality?</li>
</ol>
<p>I will appreciate any guidance.</p>

<paneldata><stata><fixed-effects>
Seasonal adjustment and time fixed effects
Pingu
# Seasonal adjustment and time fixed effects

(Asked by: username_0 on 2024-07-22)

Apologies if this seems mundane.

I have monthly data on 65 regions and I want to seasonally adjust it using seasonal dummies in Stata. I have two questions:

1. If I plan on analyzing the data using `xtreg, fe` and controlling for time fixed effects, how should this be done for monthly data? Is including `i.monthly_date` sufficient to control for seasonality in `xtreg, fe`?
2. If I intend to seasonally adjust the series before running regressions, should I use the predicted residuals or fitted values as the adjusted series? After running `reg x i.monthly_date`, should I use `predict adj_series, residuals` or `predict adj_series, xb` to get the seasonally adjusted values? Additionally, is the regression `reg x i.monthly_date` enough to adjust for seasonality?

I will appreciate any guidance.

**Tags:** paneldata, stata, fixed-effects

---

## 1 answers

### Answer by username_1 on 2024-07-22. Score: 0 | Accepted answer

> If I plan on analyzing the data using xtreg, fe and controlling for time fixed effects, how should this be done for monthly data? Is including i.monthly\_date sufficient to control for seasonality in xtreg, fe

In principle such monthly fixed effects would absorb the seasonal effects. However, there are other things to consider. These monthly fixed effects will cost you a lot of degrees of freedom. Depending on your dataset size and other characteristics, and other research details there could be better ways to control for seasonality. It’s difficult to give more specific advice without seeing the data.

> If I intend to seasonally adjust the series before running regressions, should I use the predicted residuals or fitted values as the adjusted series? After running reg x i.monthly\_date, should I use predict adj\_series, residuals or predict adj\_series, xb to get the seasonally adjusted values? Additionally, is the regression reg x i.monthly\_date enough to adjust for seasonality?

If you are seasonally adjusting the series using some model of course you should use the fitted values from that model. I am not sure what your rationale for using residuals would be.

In principle `reg y x i.monthly_date` is sufficient to control for seasonal effects.


---

