Hi there,
I am using the following code to finalize some treated and controlled municipalities based on the infectious rate of covid
. can you please guide me on what command provides me with the name of treated and controls in a nice table in Microsoft Word? My treated municipalities are shown in the "data browser" as 3 and my controlled ones are 0.
forvalues i = 2020/2022 {
qui su tot_inf_10k`i', de
gen treated_`i' = 0 if tot_inf_10k`i' < r(p25)
replace treated_`i' = 1 if tot_inf_10k`i' > r(p75)
}
gen treated = treated_2020 + treated_2021 + treated_2022
drop if treated == . | treated == 1 | treated == 2
I am using the following code to finalize some treated and controlled municipalities based on the infectious rate of covid
. can you please guide me on what command provides me with the name of treated and controls in a nice table in Microsoft Word? My treated municipalities are shown in the "data browser" as 3 and my controlled ones are 0. forvalues i = 2020/2022 {
qui su tot_inf_10k`i', de
gen treated_`i' = 0 if tot_inf_10k`i' < r(p25)
replace treated_`i' = 1 if tot_inf_10k`i' > r(p75)
}
gen treated = treated_2020 + treated_2021 + treated_2022
drop if treated == . | treated == 1 | treated == 2

Comment