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
Related Posts with trend over years for categorical variable
Working with survey data: using weights in svy: proportionHi, I've recently started to work more with survey data, and discovered Stata's survey functions. H…
adjustrcspline and plotting axis/limitsHi all. I've been hunting online for a while now but can't seem to find a good solution for this yet…
meta regression using STATA 16Hi to everybody.. I try again to explain my problem, hoping that somebody answer me. Not being very …
How to assign unique ID to duplicate entries in two rows ?X Y Unique ID (this is what I want)? 11 18 1 11 37 4 11 45 5 11 18 1 11 48 6 11 50 7 11 51 8 11 54 9…
Calculations based on rankHi everyone, I'm an undergraduate student studying economics and am having trouble with Stata. I'm …
Subscribe to:
Post Comments (Atom)
0 Response to trend over years for categorical variable
Post a Comment