R Bloggers iconR BloggersSep 2, 2026

Z-Test in R: Complete Guide with One-Sample & Two-Sample Examples

Complete guide to running one-sample and two-sample Z-tests in R using BSDA::z.test(), the manual pnorm/qnorm method, and how to choose between a Z-test and a t-test for your data.

Z-Test in R: Complete Guide with One-Sample & Two-Sample Examples

Share this story

Send the public story page.

Useful takeaways from this story.

Complete guide to running one-sample and two-sample Z-tests in R using BSDA::z.test(), the manual pnorm/qnorm method, and how to choose between a Z-test and a t-test for your data.

Building the complete brief

The page is ready to read now. The fuller skim-friendly version will appear here automatically.

The useful part

Complete guide to running one-sample and two-sample Z-tests in R using BSDA::z.test(), the manual pnorm/qnorm method, and how to choose between a Z-test and a t-test for your data. Complete Guide with One-Sample & Two-Sample Examples

Example or evidence

Keep reading in the app

Open the app view to save this story, compare related coverage, and continue from the same source.

Open in app