say I have a categorical variable X with 3 levels coded as 1,2,3 and then I have a table of age, sex and etc, by X, which looks like the following: x-level1 x-level2 x-level3 p-trend age 56 54 57 ? female% 67% 65% 66% ? my question is how to test if there is a statistically significant trend across x-levels for age and for sex? any suggestion will be greatly appreciated! -- View this message in context: http://www.nabble.com/how-to-do-trend-test--tp17200200p17200200.html Sent from the R help mailing list archive at Nabble.com.