Announcement

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

  • Add a legend for quantile plot(grqreg)

    Based on below command I run a quantile regression but I can not add a legend. Could you please advise me how can add a legend for quantile plot?
    Code:
    qreg yield_1 ndre_20 dem_16, quantile(.5)
    
    grqreg, ci ols olsci
    The Below code did not work:

    Code:
     grqreg, ci ols olsci || legend(on)
    error option legend() not allowed
    
    grqreg, ci ols olsci ||, legend(on)
    error option legend() not allowed
    
    grqreg, ci ols olsci, legend(on)
    error option legend() not allowed

  • #2
    Please read the Statalist FAQ Advice for advice and requests on how to post here. https://www.statalist.org/forums/help Points 6, 8 and 12 apply.

    First off, I am going to go out on a limb and guess that your real name is not as given. We strongly prefer real names and are delighted that people who don't agree with or respect that preference are at complete liberty to post their question anywhere else. More explanation under https://www.statalist.org/forums/help#adviceextras

    Second off, you have posted this somewhere else and so our request to tell us about cross-posting applies. https://stackoverflow.com/questions/...gression-plots

    Yet more, please tell us about the provenance of community-contributed commands you cite. grqreg is a 2011 command from SSC.

    https://www.statalist.org/forums/for...d-using-grqreg seems relevant.

    Comment

    Working...
    X