use "$dir_root/Data/searches/BNA_1895_Hits.dta", clear

gen counter=1
gen monday_counter=(monday_1895!=.)
gen rain_counter=(rain_1895!=.)


replace frequency="daily" if frequency=="d"
replace frequency="weekly" if inlist(frequency,"w","tw","thrice")
replace frequency="other" if frequency!="daily" & frequency!="weekly"
collapse (sum) counter monday_counter rain_counter, by(frequency)

compress
save "$dir_root/Results/T5_stats.dta", replace
