Announcement

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

  • Plot Quantile Regression

    Hello,

    I would like to conduct a quantile regression and plot the regression afterwards.
    I am getting an error message 1b.incomegroupinvalid name
    Do you know what I am doing wrong?

    I am trying to do this with the following commands:
    Code:
     qreg birthrate i.incomegroup
    Code:
    grqreg, ci ols olsci
    Last edited by OLMABA JALA; 04 Jun 2021, 03:07.

  • #2
    Hi Olmaba
    The problem is that -grqreg- does not work with factor variables. So it doesn't understand why you are using "i.incomegroup".
    You can do two things:
    1. create the dummies yourself and add it to the regression.
    2. try the command qregplot (from ssc)

    HTH

    Comment

    Working...
    X