Closed simonijain closed 1 year ago
Yes -- if you've incorporated FEs into estimation by absorbing them, you should add ProblemResults.xi_fe
to ProblemResults.xi
when initializing the simulation's xi
. Is that what you meant?
I'm going to close this for now, but feel free to re-open/keep commenting if you still have a question!
In previous versions of pyblp
, I recall having to manually multiply pyblp.build_matrix(pyblp.Formulation('linear_product_formula'), product_data)
with ProblemResults.beta
and then subtract the matrix product from ProblemResults.compute_delta()
in order to recover the full contribution of $\xi{jt}$ to $\delta{jt}$ (inclusive of absorbed fixed effects). It seems that we can now separably extract the contribution of the absorbed fixed effects (ProblemResults.xi_fe
) from the contribution of the residualized unobserved product heterogeneity $\Delta\xi_{jt}$ (ProblemResults.xi
). Their sum gives you the net contribution.
Yes, exactly! I don't remember exactly when I added ProblemResults.xi_fe
, but it's definitely a relatively new attribute that I added precisely to make this type of thing easier.
I am trying to run a simulation to compute the profits for all markets and products, even if some products are not being offered in some markets currently, for entry and exit with mergers analysis.