[R] Difference in offset values in R and STATA

Sorkin, John j@ork|n @end|ng |rom @om@um@ry|@nd@edu
Tue Apr 14 21:36:12 CEST 2020

Your question is unlikely to be answered unless you post code demonstrating the problem

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<x-apple-data-detectors://12>
GRECC<x-apple-data-detectors://12> (BT/18/GR)
Baltimore, MD 21201-1524<x-apple-data-detectors://13/0>
(Phone) 410-605-711<tel:410-605-7119>9
(Fax) 410-605-7913<tel:410-605-7913> (Please call phone number above prior to faxing)

On Apr 14, 2020, at 3:23 PM, Haddison Mureithi <mureithihaddison using gmail.com> wrote:

Hae guys,
When performing a poisson regression sometimes one has to input the
offset/exposure variable to account for individual time spent in a certain
therapy before acquiring a certain condition of interest, whereby in r
offset(log(months)) and in STATA offset(log(months)) results differ.
Thereby increasing the difference of the overall outcome, i don't know why
any one know why?

   [[alternative HTML version deleted]]

R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide https://nam03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.r-project.org%2Fposting-guide.html&data=02%7C01%7C%7Cb386607c67fa45f5ac3508d7e0a923cc%7C717009a620de461a88940312a395cac9%7C0%7C0%7C637224889939614430&sdata=D4wrhP70NpBLjcE8Yd9JZCIykwqf4dDTla4Zkyk%2FQ5Q%3D&reserved=0
and provide commented, minimal, self-contained, reproducible code.

	[[alternative HTML version deleted]]

More information about the R-help mailing list