Power Simulation
Simulation-Based Power Analysis
Table of Contents
Contributors
I Concepts
1
Power Analysis
1.1
Canned routines
1.2
Step by step
2
Simulation
2.1
Customization
2.2
Step by step
II Preparation
3
Power of What?
3.1
Study design
3.2
Mixed effects model
3.2.1
Step 1: model specification
3.2.2
Step 2: Variable composition
3.2.3
Step 3: Parameter composition
III Implementation
4
R
4.1
Setup
4.2
Data simulation step by step
4.2.1
Establish the simulation parameters
4.2.2
Establish the data-generating parameters
4.2.3
Simulate the sampling process
4.2.4
Analyze the simulated data
4.3
Data simulation automated
4.4
Power calculation single run
4.5
Power calculation automated
4.5.1
Check false positive rate
4.6
Power for different effect sizes
5
Python
5.1
Simple linear regression
5.1.1
Setup
5.1.2
Step 4: Simulate
5.1.3
Step 5: Automate
5.1.4
Step 6: Summarize
5.2
Mixed effects model
5.2.1
Step 4: Simulate
5.2.2
Step 5: Automate
5.2.3
Step 6: Summarize
6
Stata
6.1
Simple linear regression
6.1.1
Setup
6.1.2
Step 4: Simulate
6.1.3
Step 5: Automate
6.1.4
Step 6: Summarize
6.2
Mixed effects model
6.2.1
Setup
6.2.2
Step 4: Simulate
6.2.3
Step 5: Automate
6.2.4
Step 6: Summarize
IV Appendix
7
Software Comparison
Resources
R
Stata
Published with bookdown
7
Software Comparison