Changes

Jump to navigation Jump to search
78 bytes added ,  11:16, 18 October 2016
no edit summary
==Attempt 1==
use STATApredictLBO.dta, clear \\<br>rename nopatents case_nopatents \\<br>rename logitpw case_logitpw \\<br>rename gvkey case_gvkey \\<br>
/*industry, year, and no. of patents*/<br>joinby industrygroup3 year using STATApredictLBO.dta<br>gen a = nopatents*0.95<br>gen b = nopatents*1.05 <br>gen delta=abs(logitpw-case_logitpw)<br>drop if case_nopatents > b | case_nopatents < a <br>
// GENERATE SOME RANDOM NUMBERS TO RANDOMLY BREAK ANY TIES<br>// ON CLOSENESS OF MATCH OF MARKET VALUE <br>set seed 1020<br>gen double shuffle1 = runiform() <br>gen double shuffle2 = runiform() <br>
by case_gvkey (delta shuffle1 shuffle2), sort: keep if _n == 1 <br>drop delta shuffle1 shuffle2 <br>
( )Error op. sys. refuses to provide memory

Navigation menu