Hi I am doing repeat cross sectional analysis over 10 years (discharge_year) for of a categorical measure (oc_mix) which have 3 categories(weak, strong, both). I started doing just a descriptive analysis and plotted stacked bar, and calculated the numbers and proportion for each of the category each year. I want now to test if the upward, downward or fluctuating trend seen in each category is statistically significant or not. not sure which test should I use. is it chi square for trend or ologit or some thing else and how to use it in STATA.
discharge year oc_mix
strong week both
2010 1,390 500 200
2011 1450 600 300
2012 1500 679 400
2013 1600 800 100
0 Response to trend over years for categorical variable
Post a Comment