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
Query on "characteristic contents too long" errorDear Statalisters, I am employing a partial linear regression model (plreg) in a cross-sectional co…
no observations error messageHi all, Can someone explain to me why I get the 'no observations' error message when I execute the …
Find and Replace all text within brackets?Hi, I am working with a panel dataset whose variable names are very different for every wave of the …
Issue about Counting Time Spans Sorted by Specific VariablesHi Statalisters, I have such a sample dataset and want to count the year span sorted by specific va…
BHAR - Buy and Hold abnormal returnsHello everyone, hope you are doing well. I wanted to know how I could code for Buy and hold abnormal…
Subscribe to:
Post Comments (Atom)
0 Response to trend over years for categorical variable
Post a Comment