Statalist


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

Re: st: graphing ordinal and continuous variables


From   Maarten buis <[email protected]>
To   [email protected]
Subject   Re: st: graphing ordinal and continuous variables
Date   Mon, 23 Nov 2009 14:50:11 +0000 (GMT)

--- On Mon, 23/11/09, Robin L Jacobowitz wrote:
> I am trying to create a scatterplot showing the
> relationship between two variables, one ordinal and one
> continuous.   A regression indicates a quadratic
> relationship, but when I use the twoway scatter syntax,
> I get data points lined up along the categories of the
> ordinal variable. 

I like -stripplot- by Nick Cox for these kinds of graphs.
you can download it by typing in stata -ssc install stripplot-.
There are many examples in the help file to play with. 
Note that the help file assumes that you recognize the 
variable names as comming from the auto.dta dataset that 
comes with Stata, and which you can load by typing in 
Stata -sysuse auto-.

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index