<>
*************
sysuse auto, clear
twoway (qfit mpg rep78) (scatter mpg rep78)
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Robin L
Jacobowitz
Gesendet: Montag, 23. November 2009 15:12
An: [email protected]
Betreff: st: graphing ordinal and continuous variables
I have a quick and hopefully not too complicated question. 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. Can someone advise
me on the syntax to show the regression line?
Thanks in advance for your help.
Robin
Doctoral candidate, NYU
*
* 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/