Thanks as ever to Kit Baum, revised files for countmatch are now downloadable from SSC. Thanks again to Mabel Costa and Hemanshu Kumar for flagging the bug, as it turned out to be.
-
Login or Register
- Log in with
tempfile orig set2 save `orig' contract gvkey fyear ANALYS2, freq(wanted) rename ANALYS2 ana save `set2' use `orig' rename ANALYS1 ana merge m:1 gvkey fyear ana using `set2', keep(master match) keepusing(wanted) nogen replace wanted = 0 if missing(wanted) rename ana ANALYS1
. countmatch ANALYS1 ANALYS2, by(gvkey fyear) gen(freq_cm) . assert wanted == freq_cm
Comment