Skip to content
Prev 384642 / 398525 Next

how to calculate odd ratios with R?

Luigi,
Odds ratios can be produced using a logistic regression, which can be performed using the glm function. The following has a detailed description of how logistic regression can be performed using R:

https://stats.idre.ucla.edu/r/dae/logit-regression/

John


John David Sorkin M.D., Ph.D.
Professor of Medicine
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology and Geriatric Medicine
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524
(Phone) 410-605-7119
(Fax) 410-605-7913 (Please call phone number above prior to faxing)
Message-ID: <MN2PR03MB5167BFBB3DF5C43474571C4EE2690@MN2PR03MB5167.namprd03.prod.outlook.com>
In-Reply-To: <CAMk+s2RERrPE4EnDASqpyihZDTjxcPu=gAXjFLgtrrvc1N1TAA@mail.gmail.com>