Simon, I suggest you look at the web page https://cran.r-project.org/web/packages/SampleSize4ClinicalTrials/SampleSize4ClinicalTrials.pdf The package SampleSize4Clinical Trials appears to be exactly what you want. I believe it can produce a sample size estimate comparing two proportions for non-inferiority.
John John David Sorkin M.D., Ph.D. Professor of Medicine University of Maryland School of Medicine Associate Director for Biostatistics and Informatics Baltimore VA Medical Center Geriatrics, Research, Education, and Clinical Center Chief, Biostatistics and Informatics University of Maryland School of Medicine Division of Gerontology, Geriatrics and Palliative Care Senior Statistician University of Maryland Center for Vascular Research 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) ________________________________________ From: R-help <r-help-boun...@r-project.org> on behalf of Lee Simon <simonleelee123...@gmail.com> Sent: Sunday, June 6, 2021 4:29 AM To: r-help@r-project.org Subject: [R] Help for Use of R software Dear Sir/Madam, May I seek for your kind help for the use of R software for conducting two-proportional z-test which is test for non-inferiority? I have found one saying using function (TwoSampleProportion.NIS(alpha, beta, p1, p2, k, delta, margin) but the software said there is not such function. Thank you very much for your kind help. With kindest regards, Simon [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fstat.ethz.ch%2Fmailman%2Flistinfo%2Fr-help&data=04%7C01%7CJSorkin%40som.umaryland.edu%7C6987e89fa41b4ace34c608d9290e2042%7C717009a620de461a88940312a395cac9%7C0%7C0%7C637585963482517146%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=y4%2BsOlxzq2aAhkVyc7XGnmK0%2F1fXKoEzRWZeiHdV3eg%3D&reserved=0 PLEASE do read the posting guide https://nam11.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.r-project.org%2Fposting-guide.html&data=04%7C01%7CJSorkin%40som.umaryland.edu%7C6987e89fa41b4ace34c608d9290e2042%7C717009a620de461a88940312a395cac9%7C0%7C0%7C637585963482517146%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=JuXMHDDub3oN9RXw2Q7owTIR4DDNi6DHA%2FNqUZFQHnI%3D&reserved=0 and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.