I am currently working on panel data (using the plm
package) with around 10 variables and only 30.000 observations. When I turn the option in plm()
command from effect = "individual"
to effect = "twoways"
, the calculation time takes ca. 1 minute, which I still find OK, and I got a plm object with a size of 12MB.
However, when I summarize the regression result with either summary(plm.object)
or stargazer(plm.object)
, the process time can take up to 15 minutes with a CPU intensive work, which makes me really really confusing! From my understanding, the regression result is already stored in the plm.object after the regression, the only thing summary or stargazer does is show the result from the plm object.
Does anyone have an idea why summary()
takes so long time?