Power Analysis with PowRPriori: A Complete Workflow with Different Examples
Introduction | Getting Started | Complete Example of the Workflow: A 2x2 Mixed Design | Step 1: Defining the Study Design | Step 2: Defining the Statistical Model | Fixed effects in lme4-formulas | Random effects in lme4-formulas | Step 3: Specifying the Hypothesized Effects | Scenario A: You do not know the values of the coefficients | Scenario B: You already know the values of the coefficients | Centering of Predictors | Step 4: Specifying the Random Effects | Step 5: Run the Simulation | Step 6: Interpret and Visualize the Results | The Summary Table | The Power Curve | Plotting sample data | Other Use Cases | Use Case 1: A Cluster-Randomized Trial | Use Case 2: Crossed Designs | Use Case 3: Generalized linear mixed models (GLMMs) | Use Case 4: Using Intraclass Coefficients for the Random Effects Structure | Conclusion | References