Hi everyone,
Let's say I have 9 continuous variables that count the number of days per year with an average temperature in a given range. The bins are: <21, 21-23, 23-25, 25-27, 27-29, 29-31, 31-33, 33-35, >35
The sum of all bins should be always equal to 365 days.
Now, I am running the following regression:
reg Y max_b1 max_b2 max_b3 max_b6 max_b7 max_b8 max_b9
Therefore, the interpretation of max_b9 would be the effect of replacing a day from the reference category (i.e., [25-29]) for a day above 35.
I want to create a coefficient plot that includes the reference category with the label [25-29] as the reference category and includes a dot right in zero, as the interpretation.
So I run the regression and then use mata
reg Y max_b1 max_b2 max_b3 max_b6 max_b7 max_b8 max_b9
mat r= r(table)
mat R1= r[1..6,1..3]
matrix R2 = J(6, 1, .)
matrix R2[1,1] = 0
mat R3= r[1..6,4..7]
matrix R = R1, R2, R3
coefplot matrix(R), levels(99 95 90) vertical
However, I get this error: "(R: could not determine CI1)"
Anoyone knows how can I fix this ?
Thanks !
Let's say I have 9 continuous variables that count the number of days per year with an average temperature in a given range. The bins are: <21, 21-23, 23-25, 25-27, 27-29, 29-31, 31-33, 33-35, >35
The sum of all bins should be always equal to 365 days.
Now, I am running the following regression:
reg Y max_b1 max_b2 max_b3 max_b6 max_b7 max_b8 max_b9
Therefore, the interpretation of max_b9 would be the effect of replacing a day from the reference category (i.e., [25-29]) for a day above 35.
I want to create a coefficient plot that includes the reference category with the label [25-29] as the reference category and includes a dot right in zero, as the interpretation.
So I run the regression and then use mata
reg Y max_b1 max_b2 max_b3 max_b6 max_b7 max_b8 max_b9
mat r= r(table)
mat R1= r[1..6,1..3]
matrix R2 = J(6, 1, .)
matrix R2[1,1] = 0
mat R3= r[1..6,4..7]
matrix R = R1, R2, R3
coefplot matrix(R), levels(99 95 90) vertical
However, I get this error: "(R: could not determine CI1)"
Anoyone knows how can I fix this ?
Thanks !
Comment