Skip to content

Instantly share code, notes, and snippets.

@dsquintana
Created July 20, 2018 18:40
Show Gist options
  • Save dsquintana/ef1146afff2fe571081b0459a9c2af5f to your computer and use it in GitHub Desktop.
Save dsquintana/ef1146afff2fe571081b0459a9c2af5f to your computer and use it in GitHub Desktop.
Power analysis
# Load package
library(pwr)
# Perform power analysis
pwr.t2n.test(sig.level = 0.05, n1= 32,n2= 23, power = 0.8,
alternative="two.sided")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment