Hi. My code below fails because the factor variable - treatedt - does not have continuous values (displayed below). The error I get is "[1.treatedt] not found". How can I amend this code to store for all values of treatedt as available and skip where not available? Thanks!
Code:
local N = `span' * 2 + 1 forvalues i = 1/`N' { local b_`i'_1 = _b[`i'.treatedt] local se_`i'_1 = _se[`i'.treatedt] } treatedt (unlabeled) -------------------------------------------------------------------------------------------------------------------------------------------------- Type: Numeric (float) Range: [0,7] Units: 1 Unique values: 5 Missing .: 0/1,615 Tabulation: Freq. Value 1,563 0 13 4 13 5 13 6 13 7 .
Comment