Hi Listers,
I am interested in assessing the relationship between diabetes diagnosis (yes/no) and age in my data. In the summary statistics, we report results by age group but for this analysis I am opting to use age as continuous - still to clear it with my colleagues.
it was suggested I may want to use the Cochran-Armitage trend test using ptrend
ptrend nyes nno age
The Chi2 for departure has p<.001 which suggests the null hypothesis is not met. Does it mean that I should not be using the CA test as the assumption of linearity is not met?
I am also considering that, seen that I am using age as continuous, I could simply run a simple logistic regression with age as a predictor. Is there a way to assess if there is a linear association between diagnosis and age? Plotting the data shows a decrease with a dip at age 55 which is followed by an increase in diagnosis rates which suggests a non-linear association.
What's the best way forward?
Thank you in advance!
Related Posts with Trend analysis - ptrend
Creating a Graph That Shows Treatment Status by Group Over Years of A PanelHi all, I'm stuck with a graph I'm trying to figure out. I am in one of those difference-in-differe…
DiD Regression with panel data measuring two factors before and after treatmentHi all! I'd appreciate some help on trying to run a regression through Stata. I am relatively new to…
Estimate whether coefficient of different models are JOINTLY equal to zeroDear network, I have 10 independent variables (x1, x2, x3, x4, x5, x6, x7, x8, x9, and x10) and fiv…
Problems with controls and fixed effects in DIDHi, I'm currently using triple difference to analyse the effect of minimum marriage age legislation…
Panel Data Regression: reg vs xtregHello Everyone, I have a panel data that I am trying to make a regression for and I am confused whi…
Subscribe to:
Post Comments (Atom)
0 Response to Trend analysis - ptrend
Post a Comment