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, **statalist.org** is already up and running.

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

From |
Nick Cox <njcoxstata@gmail.com> |

To |
"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
Re: st: mlowess- Rescaling the Y-axis |

Date |
Fri, 14 Sep 2012 22:41:10 +0100 |

Nick

Thanks for your response Nick. Can you please be more specific? Forthe lowess, to my surprise, adding 'twoway' to the command (.twowaylowess var1 var2) removed all points, depicted only the smoothcurve, and enabled rescaling the y-axis. It does not seem to beworking for the mlowess though.Vahid -----Original Message-----From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Nick CoxSent: 14 September 2012 01:07 To: statalist@hsphsun2.harvard.edu Subject: Re: st: mlowess- Rescaling the Y-axis -mlowess- (SSC) is user-written, as you are asked to explain.To get what you want you would need to clone -mlowess- and removeall the graphics calls except those drawing the predicted valuesgiven the predictors.If they are essentially flat w.r.t. the predictors the modelling orsmoothing exercise is evidently finding little structure in the data.Nick On 13 Sep 2012, at 20:26, "Vahid Ravaghi, Dr" <vahid.ravaghi@mcgill.ca> wrote:Hi Statalist I am trying to depict the Lowess smoothing with multiple predictorsusing the command 'mlowess'. Because I only needed the smoothedcurve,I added the 'nopt' option to get rid of the scatterplot. This was the code: .mlowess teeth income, nopt The curve lie below the value 2 of the y-axis, but the y-axis rangesfrom 0-25. As a result, the curve looks really small and it is hardtointerpret. Changing the range of the y-axis using the' yscale' and 'ylable' is not feasible due to wide range of observations. I waswondering if anyone have any suggestion to enlarge the curve eitherbychanging the scale of the y-axis or etc.. Kind regards, Vahid Ravaghi Postdoctoral Fellow McGill University * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/* * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/ * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

* * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

**Follow-Ups**:**RE: st: mlowess- Rescaling the Y-axis***From:*"Vahid Ravaghi, Dr" <vahid.ravaghi@mcgill.ca>

**References**:**st: mlowess- Rescaling the Y-axis***From:*"Vahid Ravaghi, Dr" <vahid.ravaghi@mcgill.ca>

**Re: st: mlowess- Rescaling the Y-axis***From:*Nick Cox <njcoxstata@gmail.com>

**RE: st: mlowess- Rescaling the Y-axis***From:*"Vahid Ravaghi, Dr" <vahid.ravaghi@mcgill.ca>

- Prev by Date:
**st: Fwd: replace values given specific dates** - Next by Date:
**st: Re: Creating drugs combination** - Previous by thread:
**RE: st: mlowess- Rescaling the Y-axis** - Next by thread:
**RE: st: mlowess- Rescaling the Y-axis** - Index(es):