def fama_macbeth(**kwargs):
 window_type = kwargs.get('window_type')
 if (window_type is None):
  klass = FamaMacBeth
 else:
  klass = MovingFamaMacBeth
 return klass(**kwargs)

def fama_macbeth ( ** kwargs ) : window_type = kwargs . get ( 'window_type' ) if ( window_type is None ) : klass = FamaMacBeth else : klass = MovingFamaMacBeth return klass ( ** kwargs )
runs fama-macbeth regression .