calculate market share crsp code example
Example 1: adjusted price in crsp pandas
CRSP['PRC_adjusted'] = CRSP['PRC'] / CRSP['CFACPR']
Example 2: market share adjusted crsp
CRSP['SHROUT_adjusted'] = CRSP['SHROUT'] * CRSP['CFACSHR']
CRSP['PRC_adjusted'] = CRSP['PRC'] / CRSP['CFACPR']
CRSP['SHROUT_adjusted'] = CRSP['SHROUT'] * CRSP['CFACSHR']