Announcement

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

  • Fitted multiple regression line with one continuous and many dummy variables in the regressors

    Hello everyone,

    I am working with the following model -

    Yi = β1 + β2 Xi + β3 Zi + β4 Pi + β5 Qi + β6 Si + εi

    where Y is a binary dependent variable and among the independent variables - only X is continuous and the rest are dummies (Z, P, Q and S). I am working with Linear Probability Model, Logit and Probit model.

    What I am trying to do is

    a) plot the fitted values of X using its coefficients from LPM model. Here all of the dummies will be at their respective averages. Next in the same plane, I want to plot X again using its coefficient from LPM but here only one of the of the dummies will take the value of 1 (i.e. only Z) and rest will be at their averages (P, Q and S).

    b) Next in a similar manner, I would like to plot the fitted values of X using its marginal effects from Logit model. Here again all of the dummies will be at their respective averages. Next in the same plane, I want to plot X using its marginal effects from Logit but similarly here, only one of the of the dummies will take the value of 1 (i.e. only Z) and rest will be at their respective averages (P, Q and S).

    Can anybody please help me with the commands? I am using STATA 14.2.

    Thank you very much.

  • #2
    You need to look at the margins command and marginsplot.

    Comment

    Working...
    X