BaşlayınÜcretsiz başlayın

Independent t-test sample size

To ensure a test is useful and likely to report accurate results as determined by an expected power and effect size, a minimum sample size must be collected. Various tests use different functions to derive the sample size needed to be collected.

You are planning to assess whether the mean time students spend on social media varies with the technology used for class during COVID. To ensure you obtain enough data for your A/B test, determine the sample size needed to achieve the values you expect.

Bu egzersiz, kursun bir parçasıdır

A/B Testing in R

Kursa Göz Atın

Egzersiz talimatları

  • Load the pwr package.
  • Determine the sample size needed with an expected effect size of 0.90 and power of 0.80 with an alpha of 0.05 for a two-tailed independent t-test.

Uygulamalı etkileşimli egzersiz

Bu egzersizi bu örnek kodu tamamlayarak deneyin.

# Load the pwr package
___

# Determine the sample size needed
pwr.t.test(d = ___, power = ___, 
           sig.level = ___, 
           type = ___)
Kodu Düzenle ve Çalıştır