Hello everybody.

Does anyone know how I can add the name of the variable corresponding to the omitted interaction (the interaction between a dummy variable and the reference category of a categorical variable) to the variable's axis of a coefficients plot made with command "coefplot"? In variable axis of the graph, I´m showing 5 variables (-3, -2, -1, 1 and 2). Each variable corresponds to the interaction between a dummy variable and a category (period) of a time variable. Because period 0 is the reference category, interaction between the dummy and period 0 is omitted. However, I need period 0 to be shown in the variable axis of the graph. Because there is no coefficient to period 0, “coefplot” don’t show me the variable. However, I need it.

I need the graph that has a 0 in the x axis, but I currently have the grpah that doesn't have a 0 in the x axis (I need a 0 between -1 and 1).

Does anyone know how I can add the name of the variable corresponding to the omitted interaction (the interaction between a dummy variable and the reference category of a categorical variable) to the variable's axis of a coefficients plot made with command "coefplot"? In variable axis of the graph, I´m showing 5 variables (-3, -2, -1, 1 and 2). Each variable corresponds to the interaction between a dummy variable and a category (period) of a time variable. Because period 0 is the reference category, interaction between the dummy and period 0 is omitted. However, I need period 0 to be shown in the variable axis of the graph. Because there is no coefficient to period 0, “coefplot” don’t show me the variable. However, I need it.

Code:

coefplot (Homicidio_total), /// yline (0) /// vertical /// keep (1.tratamiento#1.mes2 1.tratamiento#2.mes2 1.tratamiento#3.mes2 1.tratamiento#4.mes2 1.tratamiento#5.mes2) /// coeflabels (1.tratamiento#1.mes2 = "-3" 1.tratamiento#2.mes2 = "-2" 1.tratamiento#3.mes2 = "-1" 1.tratamiento#4.mes2 = "1" 1.tratamiento#5.mes2 = "2") /// xtitle(Months) /// msymbol(o) /// levels(99 95)

## Comment