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 at the end of May, and its replacement, statalist.org is already up and running.


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

st: test for trend of an ordinal predictor


From   Georgia <gn@mrc.soton.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   st: test for trend of an ordinal predictor
Date   Mon, 26 Apr 2010 13:31:03 +0100

Hi there,

I am fitting a regression model with a normally distributed outcome (y) and an ordinal variable in 3 levels (x) as predictor. Obviously, when I use the command

xi: regress y i.x

I get separate coefficients for the second and the third level of the predictor while the first level is treated as reference. However, I would be very interested in testing the trend of the ordinal variable. In such a case, do I simply treat my ordinal var as a continuous one by typing

regress y x

or is there a better way to test the trend of x? I would appreciate any help on this.

Georgia

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