Announcement

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

  • graph bar with controls

    Hello - For a paper submission, I want to display a graph bar after a multivariate linear regression, with the dependent variable (racism) on the y-axis and the independent variable (religino) on the x-axis AND under control of the other control variables (e. g. sex, age, education).
    I used the following Code:
    Code:
     reg racism religion sex age education
    Code:
     predict racismhat
    Code:
     graph bar racismhat, over(religion)
    In my resulting graph bar, I'm not sure, if the control variables are constant (at their means or median or what?) (When I checked it by calculating the values manually, it wasn't the means nor median...). How can I show the relationship between my dependent and independent in a graph bar while controlling for the other third variables?

    I would appreciate your help very much!
    Carolin

  • #2
    I recommend to use - margins - and - marginsplot.

    You may use the option - recast(bar) - for that matter.
    Best regards,

    Marcos

    Comment

    Working...
    X