> 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/10.-factor-analysis.md).

# 10. Factor Analysis

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2FFw89N4oOYfiHvyiIsysq%2Fimage.png?alt=media&amp;token=2382c40d-7da4-4985-b422-1c1570569197" alt="" width="314"><figcaption></figcaption></figure>

1. Click on ***Factor Analysis*** in the ***Statistics*** category

<figure><img src="https://2909106259-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fl07NBXgl5MbkBetObqPW%2Fuploads%2FtpLAryaUXqVyPFZyXOKa%2Fimage.png?alt=media&amp;token=7665e774-6032-4d3c-980d-ed9ea7a6739a" alt="" width="563"><figcaption></figcaption></figure>

2. ***Install Package***: You can automatically ***Import*** the necessary packages for factor analysis.
3. ***Data***: Select the data for factor analysis. You can also choose specific conditions using the [***Subset***](/docs/data-analysis/5.-subset.md) option.
4. ***Variable***: Choose the variables from the selected data for factor analysis.
5. ***Rotation***: Select a rotation method to analyze which factors best explain the data.
6. ***Method***: Choose a factor analysis method:
   * ***Principal***: Principal Factor Analysis
   * ***ML***: Maximum Likelihood Factor Analysis
   * ***Minres***: Minimum Residual Factor Analysis
7. ***Impute***: Select a method for handling missing values:
   * **Drop**: Remove rows with missing values.
   * **Mean / Median**: Replace missing values with the mean or median.
8. ***Extract***: Decide on the criteria for extracting factors and specify the number of factors to extract.
9. ***Display***: Visualize the results.
10. ***Code View***: Preview the generated code.
11. ***Data View***: Preview the resulting data.
12. ***Run***: Execute the code.
