> For the complete documentation index, see [llms.txt](https://docs.exploratory.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.exploratory.io/analytics/factanal.md).

# Factor Analysis

## Factor Analysis

Runs factor analysis, which tries to explain number of variables as observable results of potentially lower number of unobserved variables, called factors.

### Input Data

Input data should contain following columns.

* Variable Columns - Set of observed numeric columns.
* Color By - Value of the column is used for color of each dot on the Biplot.
* Label Column - Value of the column is shown on the Biplot as the label of each dot, or as an item on the mouse-over balloon.

## Properties

* Sample Data Size - Number of rows to sample before running factor analysis.
* Factor Analysis
  * Number of Factors
  * Factoring Method
  * Type of Scores
  * Type of Rotation
* Data Preprocessing
  * Random Seed - Seed used to generate random numbers. Specify this value to always reproduce the same result.

### R Package

Factor Analysis Analytics View uses the [psych](https://cran.r-project.org/web/packages/psych/index.html) R Package under the hood.

### Exploratory R Package

For details about `psych` usage in Exploratory R Package, please refer to the [github repository](https://github.com/exploratory-io/exploratory_func/blob/master/R/factanal.R)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.exploratory.io/analytics/factanal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
