Hi everyone,
I want to run a regression model where I absorb two levels of fixed effects. My real data is very large (around 2 million) but the problem also replicates with Stata smaller, built-in data. I am using Stata 17.0 on a Mac with M1 chip.
Here is an illustration:
This is my preferred specification and it does not work:
I get the following error message:
------------------------------------------------------------------------------------------
assert(): 3498 assertion is false
BipartiteGraph::init_zigzag(): - function returned error
FixedEffects::estimate_dof(): - function returned error
<istmt>: - function returned error
------------------------------------------------------------------------------------------
However, all these specifications work (even though they should be practically equivalent)
So why don't I just use the specification that works? The version where both variables are "absorb"ed is considerably faster and gives me the desired calculation for the intercept.
Does anyone have an idea why this error (3498) occurs and how it might solve the issue?
Thank you very much for your help!
I want to run a regression model where I absorb two levels of fixed effects. My real data is very large (around 2 million) but the problem also replicates with Stata smaller, built-in data. I am using Stata 17.0 on a Mac with M1 chip.
Here is an illustration:
Code:
sysuse bplong.dta, clear
Code:
reghdfe bp when, absorb(sex agegrp)
------------------------------------------------------------------------------------------
assert(): 3498 assertion is false
BipartiteGraph::init_zigzag(): - function returned error
FixedEffects::estimate_dof(): - function returned error
<istmt>: - function returned error
------------------------------------------------------------------------------------------
However, all these specifications work (even though they should be practically equivalent)
Code:
reghdfe bp i.agegrp when, absorb(sex) reghdfe bp i.sex when, absorb(agegrp) reghdfe bp i.sex i.agegrp when, noabsorb
Does anyone have an idea why this error (3498) occurs and how it might solve the issue?
Thank you very much for your help!
Comment