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
Tabout Error - Conformability r(3200) Hello I am using running a series of crosstab tables using the following tabout command: Code: t…
Help/advice on importing large number of text files into StataDear all, I have a collection of around 2,400 PDFs of parliamentary debate transcriptions that I wo…
Elasticity estimates in Tobit regressionDear Statalisters This is my first post so please excuse if the question is not posed correctly. W…
Calculating effect sizes after MI and mixedHello All, I hope this message finds you well! After running the following code is there a way to …
Help needed to adjust the outcome of bysort commandDear Stata community members, I have created a count variable k and p based on the following syntax…
Subscribe to:
Post Comments (Atom)
0 Response to trend over years for categorical variable
Post a Comment