Announcement

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

  • generate quantile regression graphs for dummy variable

    Hi all

    I am trying to generate quantile regression coefficients graph using grqreg command. I run the following commands: (Note: y is my dependent variable, gender, x1, x2, are independent variables. gender is dummy variable which assumes value 1 for female and 0 otherwise.)

    qui sqreg y i.gender x1 x2 x3, quantile(.05 .10 .25 .50 .75 .90.95)
    grqreg, ols olsci

    After I run these commands, I get the following message

    1b.gender invalid name
    r(198);


    Is it that this command does not accommodate the graphs for dummy variables, or I am doing any mistake?
    Kindly help

    Regards
    Karim

  • #2
    Previously discussed (it's a good idea to search the forum before posting, as the FAQ recommends).

    http://www.statalist.org/forums/foru...8-invalid-name

    grqreg is a user-written program which doesn't support factor variable notation. But as you explain, gender is an indicator in any case, so I doubt that you need the factor variable notation in your sqreg call any way. Re-run without it.

    Comment

    Working...
    X