Hi,
I am doing a systematic review and I am comparing ORs. For most of the studies, I can only extract prevalence, calculate numbers to insert in a 2x2 table and then calculate an OR.
There is one study per observation: cases have an aaa (abdominal aortic aneurysm), exposure is dm (diabetes)
Array
Does anyone know how to do that in a loop, so I do not have to calculate all by hand?
I need to save the computed ORs along with CI (my guess is return list, gen var=r(or) - but then the variable is for all the observations and not just the exact study?)
Can anyone please help me? I know, I can do it by hand, but I would prefer programming my way out of it as to making it reproducible
Let me know if you need further information or clarification.
Thank you & Happy Holidays,
Kind regards,
Katrine
Related Posts with Loop for calculating OR in 2x2 tables (cci)
Generate population data based on known population characteristicsHello everyone, My goal is to draw a random sample from a population of registered voters. However,…
high dimensional propensity scoresHi all, After high dimensional propensity scores matching in a research paper, I am asked this by a…
Reducing space between columns using frmttableHi. I'm trying to fit a multicolumn table in word using the stata command "frmttable". The spacing b…
Panel data: plot the time series of cross-sectional averages and standard deviations for 2 variablesI have a panel data set and each observation is identified by an ID and a date. For example, there a…
min, max, mean of correlaiton matrixI apologize if I've overlooked something, but I cannot find an answer. For simplicity, I'll use an e…
Subscribe to:
Post Comments (Atom)
0 Response to Loop for calculating OR in 2x2 tables (cci)
Post a Comment