> For the complete documentation index, see [llms.txt](https://visual-python.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://visual-python.gitbook.io/docs/statistics/11.-regression.md).

# 11. Regression

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2F8W0F5tgKUbaUcGCs8G6J%2Fimage.png?alt=media&amp;token=6da2e398-6be6-4d19-85ba-1989e1b7c32b" alt="" width="303"><figcaption></figcaption></figure>

1. Click on ***Regression*** in the ***Statistics*** category.

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2FTEWRUas64Ebvevk2pwcD%2Fimage.png?alt=media&amp;token=8c906bcf-d508-4eda-aab7-f1b42a31794d" alt="" width="563"><figcaption></figcaption></figure>

2. Choose the type of Regression you want to use.
3. ***Data***: Select the data to be analyzed. You can also choose specific conditions for the data using [***Subset***](/docs/data-analysis/5.-subset.md).
4. ***Dependent Variable***: Choose the dependent variable.
5. ***Independent Variable***: Choose the independent variable.
6. ***Method(Multiple Linear Regression)***: Select the variable selection method. - ***Stepwise / Backward / Forward***
7. ***Moderated Variable & Mean Centering(Moderated Linear Regression)***: Select the moderated variable. Choose whether to apply mean centering to the moderating variable. This can reduce multicollinearity and enhance the interpretation of the model.
8. ***Sobel Test(Mediated Linear Regression)***: You can test the statistical significance of the ***mediation effect***, which indicates the extent to which the impact of one independent variable on the dependent variable is transmitted through a mediated variable.
9. ***Categorical Variables(Dummy Variable Linear Regression)***: You can include categorical variables in the regression model using dummy variables.
10. ***Multi-Colinearity Statistics(Excluding Simple Linear Regression)***: This provides statistics to check for the presence of multicollinearity.
11. ***Residual***: Select the desired output.
12. ***Code View***: Preview the generated code.
13. ***Data View***: Preview the generated data.
14. ***Run***: Execute the code.
