BookmarkSubscribeRSS Feed

A SAS Macro for Estimation of Unbalanced Panel Data Models with Two Fixed Effects

Started ‎08-25-2014 by
Modified ‎04-04-2022 by
Views 2,353

This work aimed at presenting a faster general algorithm for estimation
of panel data models with two fixed effects, when it is compared with PROC
PANEL, working with balanced or unbalanced data. The results by simulation
showed that until with a large data base (50,000 observations) only a few
seconds were necessary for estimation, while in the PROC PANEL, the estimation
wasn’t possible due to out of memory. You can find more details on paper SGF 354-2011


It's great that you have adressed this problem with unbalanced data set. But this macro only estimate a Two-way fixed effects. If I want to perform a one-way random effects estimation with an unbalanced panel I still run into the problem of trying to estimate a too large set of individual dummiy variables.

Do you or anyone else know how to perform a one-way random effects with N>50000 and T between 2 and 7 (i.e. a large unbalanced panel)?

Kind regards


Version history
Last update:
‎04-04-2022 03:16 PM
Updated by:


Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.


Register now!

Free course: Data Literacy Essentials

Data Literacy is for all, even absolute beginners. Jump on board with this free e-learning  and boost your career prospects.

Get Started

Article Tags