Aan de slagGa gratis aan de slag

Pearson sample size

Prior to running an analysis, the minimum sample size needed to attempt to achieve the results desired.

A company is interested in running a correlation on the data collected from users on their website. To ensure an appropriate amount of data is collected, determine the minimum number of subjects needed for the results that are of interest.

Deze oefening maakt deel uit van de cursus

A/B Testing in R

Cursus bekijken

Oefeninstructies

  • Load the pwr package.
  • Derive the sample size needed to detect an effect of 0.8 and a power of 0.95 using an alpha of 0.05 by running pwr.r.test().

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

# Load the pwr package
___

# Determine the sample size needed
___
Code bewerken en uitvoeren