Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: smooth quntile lines in graph

From   "rasool.bux" <>
To   "" <>
Subject   st: smooth quntile lines in graph
Date   Fri, 30 Nov 2012 05:52:13 +0000

Dear Statlist users,

I am trying to make a lowess graph with quitiles (5, 95). But the quantile lines are just straight lines. I want them to be smooth like lowess line. Is there any option to do that in STATA?

sysuse auto,clear
bsqreg mpg weight, quantile(5)
predict p5
bsqreg mpg weight, quantile(95)
predict p95
twoway (scatter mpg weight) (lowess mpg weight) (line p5 weight) (line p95 weight)

Rasool Bux


This e-mail may contain information that is privileged or confidential. If you are not the intended recipient, please delete the e-mail and any attachments and notify us immediately.

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index