Announcement

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

  • Coefplot – different independent variable, same models

    Hi Statalist,

    I have 3 models (Model A, B, and C) which sequentially adjust for different variables. I have run these models with 6 different independent variables. I have been trying to plot these using coefplot. What i'm aiming for is 6 plots for each different independent variable with models A, B, and C plotted on each. I have using the following code:

    Code:
    coefplot socA socB socC || conA conB conC || partA partB partC || lonA lonB lonC || closA closB closC || hhA hhB hhC , drop(*.sex dhager *.ethnicity *.education *.wealth _cons) xline(0) xlabel(-0.65(0.10)0.1) plotregion(fcolor(white)) graphregion(fcolor(white))
    which produces
    Click image for larger version

Name:	Graph.jpg
Views:	1
Size:	587.7 KB
ID:	1759735


    Is there a way to remove the empty plots of the other exposures from each graph? E.g., socsupport would only contain the three coefficients and CIs plotted?

    Thanks for your help,
    Robyn

  • #2
    Let's see a reproducible example.

    Comment

    Working...
    X