SorkinEstimator class

class pytwoway.sorkin.SorkinEstimator

Bases: object

Class for estimating the fixed-point revealed preference model from Sorkin (2018). Estimated firm values (log(exp(V_EE))) are stored in the attribute .V_EE.

fit(adata, max_iters=500, threshold=1e-05)

Estimate the fixed-point revealed preference model from Sorkin (2018).

Parameters
  • adata (BipartiteDataFrame) – event study or collapsed event study format labor data

  • max_iters (int) – maximum number of iterations for fixed-point estimation

  • threshold (float) – threshold maximum absolute percent change between iterations to break fixed-point iterations (i.e. the maximum percent change for a particular firm’s estimated value)