how to do trend test?
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!