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


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

Re: st: mlowess- Rescaling the Y-axis


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 06:07:19 +0100

-mlowess- (SSC) is user-written, as you are asked to explain.

To get what you want you would need to clone -mlowess- and remove all the graphics calls except those drawing the predicted values given the predictors.

If they are essentially flat w.r.t. the predictors the modelling or smoothing 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 predictors using the command 'mlowess'. Because I only needed the smoothed curve, 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 ranges from 0-25. As a result, the curve looks really small and it is hard to interpret. Changing the range of the y-axis using the' yscale' and 'ylable' is not feasible due to wide range of observations. I was wondering if anyone have any suggestion to enlarge the curve either by changing 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/


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