This project estimates the statistical power for detecting moderating effects of categorical variables using Moderated Multiple Regression (MMR).
.
├── backend/
│ ├── init.py
│ ├── app.py
│ ├── mmr_power.py
├── frontend/
│ ├── index.html
│ ├── scripts/
│ │ └── script.js
│ ├── styles/
│ └── style.css
├── requirements.txt
└── README.md
-
Clone the repository.
-
Install the required Python packages:
pip install -r requirements.txt
-
Run the backend server:
python -m backend.app
-
Open frontend/mmrpower.html in your browser to use the application.
-
Specify the number of moderator-based subgroups (k).
-
Specify the desired Type I Error Rate (α).
-
Select whether you wish to conduct the power analysis based on observable or true values.
-
Enter the required values in the table.
-
Click "Calculate Power" to get the power analysis results.
-
Click "Reset" to clear the form.
I deployed this app using Heroku.
- After completing the project, push the project to heroku:
git push heroku main
- Open the deployed app:
heroku open
You can see the web application in [https://mmrpower-cb02959ddde8.herokuapp.com/].