I would be very grateful if someone could help me with the code for this - I'm reporting the incidence of stroke in patients with diabetes versus no diabetes in 5 year bands, and would like to calculate the P value for trend over time if possible. I've tried the ptrend command but I'm confused about the other syntax. My data looks something like this:
Year Strokes in non-diabetics Strokes in diabetics
2002-2007 238/72243 343/4030
2007-2012 336/74945 282/4375
2012-2017 431/76741 169/4809
Thanks much in advance!
Related Posts with P value for trend
coefplot graph: how to drop _cons in mixed-model graph?I have a logistic regression graph which contains an unadjusted (univariate) model between age, gend…
Nearstat count number of neighbors that satisfy a certain conditionHello everyone, Currently, I am trying to generate a variable that indicates me the number of neigh…
How to manipulate forest plot / Metaprop ?Dear, my second post on statalist I run a metaprop - outcome below. When I use random effect model …
npregress derivatives at different points instead of average of totalI am running a nonparametric regression using the following code: Code: npregress kernel log_totEx…
rangestathi all, I am trying to figure out how to use -rangestat- for the following dataset example using -d…
Subscribe to:
Post Comments (Atom)
0 Response to P value for trend
Post a Comment