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: Changing the scale of a graph


From   Nick Cox <n.j.cox@durham.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   RE: st: Changing the scale of a graph
Date   Wed, 6 Jun 2012 18:13:01 +0100

In my view graphs are generally better at showing outliers than any numerical procedure. 

I don't know what you mean by "integrated command" here. If you want a command to make the decisions you would make about outliers, you would need to program that. For what I do, automatic decisions about outliers don't work well and are a bad idea. People with massive datasets arriving all the time might need to do things differently. 

Nick 
n.j.cox@durham.ac.uk 


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Lukas Borkowski
Sent: 06 June 2012 17:50
To: statalist@hsphsun2.harvard.edu
Subject: Re: st: Changing the scale of a graph

Nick, would you suggest to check for outliers before drawing the graph then, or is there any integrated command?

#
Lukas Borkowski



Am 6 Jun 2012 um 18:48 schrieb Nick Cox:

> You are not giving the Stata command you typed or telling us much about your data. 
> 
> There must be a reason why you get a lot of white space. Most obviously one or more outlier(s) need to be accommodated. As already emphasised in this thread, whatever you do to -ysc()- or -yla()- will not cause data to be omitted. 
> 
> Nick 
> n.j.cox@durham.ac.uk 
> 
> sebas nicaise
> 
> Thank you for the replies, this is indeed what I asked but there is still alot of ''white'' in the graph.
> I want to present the (small) increase in leverageratio, but with these commands it still looks like a very mild upward slope.
> 
> So my question is: How can I magnify these very small changes into the graph?
> 
> Saqlain RAZA
> 
>> try with ylabel(0.25(0.01)0.30)
> 
> sebas nicaise 
> 
>> When I do that the graph does not look nice. I want the y-axis to have very small intervals e.g 0.25 0.26 0.27 0.28 0.29 0.30.
> 
> LukasBork@hotmail.com
> 
>>> just use -yscale(range(0 0.25))- to rescale your y-axis the way you want to!
> 
> Am 6 Jun 2012 um 16:58 schrieb sebas nicaise:
> 
>>>> I have a scatter output with on the x-axis time and on the y-axis the leverageratio.
>>>> When I command stata to plot I get on the y-axis a scale from 0.1 to 0.35.
>>>> 
>>>> Now I want to narrow my y-axis to lets say 0.25 to 0.30, How do I tell stata to do this?
>>>> 
>>>> I have tried add the command ylabel(0.3 0.35) but does not give me a nice looking graph.
> 

*
*   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