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
Outreg2 titles and panelsDear Stata wizards, I am replicating stata results from a paper and I am unsure how to add "sub col…
Create new Variable: Migration flowsHi, I have a dataset in long form with the variables country of origin, destination country, stock …
Small Variance estimating coefficientsI would just like to confirm my understanding is correct. I am running a panel regression. One of m…
Controlling for time vs. clustered/robust SEConducting a regression on panel data using xtreg... can someone help me out with the theory behind …
More efficient way to moss p_name, match("([0-9])") regex in a very large dataset?Good morning, I need to find the first instance of [0-9] in a string. I tested the following and it …
Subscribe to:
Post Comments (Atom)
0 Response to P value for trend
Post a Comment