- Learn how to simulate data to:
- Test your statistical intuition
- Perform power tests
- Experiment with a new technique on known data
- Learn how to use functions to reduce duplication
- Writing functions in R - a detailed exploration of writing functions in R. You might want to try reading through this if you're still confused.