Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Coefplot/Marginsplot and Sum of Coefficients

    Hi all,

    I'm looking to create a graph of regression coefficients that uses the sum of two coefficients. My dependent variable is binary and my independent variable is continuous. Here is an example:

    sysuse cancer, clear
    regress died studytime

    This is my output:
    Click image for larger version

Name:	output1.PNG
Views:	2
Size:	49.9 KB
ID:	1751697



    I get an intercept coefficient (average probability of death when studytime is 0) and a coefficient for studytime (average change in probability of death when studytime increases by 1 unit).

    I would like to make a coefficient plot with a point estimate and CI bars for the intercept, and the point estimate and CI bars for the sum of the two coefficients mentioned above. Coefplot just plots the average change in probability of death for a one unit increase in studytime, and I don't want to plot average probability of death against increments of studytime (like marginsplot would suggest)- I just want to show the average when studytime is 0, and the average probability of death when studytime increases by 1 unit at any given level.

    Is there some way of repurposing either coefplot or marginsplot to get at this?
    Any help would be appreciated.
    Attached Files
Working...
X