Skip to content

Instantly share code, notes, and snippets.

@hakyim
Last active January 21, 2021 23:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hakyim/4d19f15de5839f7f1b534ac1a84f0f93 to your computer and use it in GitHub Desktop.
Save hakyim/4d19f15de5839f7f1b534ac1a84f0f93 to your computer and use it in GitHub Desktop.
library(pwr)
pwr.r.test(n=90,sig.level=0.05,power=0.8)
## approximate correlation power calculation (arctangh transformation)
##
## n = 90
## r = 0.2913625
## sig.level = 0.05
## power = 0.8
## alternative = two.sided
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment