Experimental design, power and statistics for in vivo behavioural scientists
  • Downloding and installing R
  • Designing Experiments
  • Power Analysis
  • Planning Data Analysis
  • Data analysis
The first step in calculating the required sample size or to see if you have enough power to run your experiment is to open R.

The first time you use R for this, you will need to type:
Picture
and hit 'Enter' on the keyboard. This will install the R library that you need to carry out the power analysis. This library was developed by Stéphane Champely, and calculates power based on Cohen's (1988) protocols.
Next, type:
Picture
into the console and hit 'Enter'. You will need to do this every time you open R to carry out a power analysis. This will make the 'pwr' library active (you always need to do this in R when using a library during a session, so get used to doing it now!!).
Comparing 2-groups/time-points (t-test)
Comparing n groups/time-points (ANOVA)
Comparing proportions
Correlation
Multiple regression
Observed vs. expected (Chi-squared)
Return to previous page
Powered by Create your own unique website with customizable templates.