Class FactorAnalysis

java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.other.FactorAnalysis
All Implemented Interfaces:
Algorithm, ReturnsBootstrapGraphs, HasParameters, TetradSerializable, Serializable

@Bootstrapping public class FactorAnalysis extends AbstractBootstrapAlgorithm implements Algorithm
Factor analysis.
Version:
$Id: $Id
Author:
josephramsey
See Also:
  • Constructor Details

    • FactorAnalysis

      public FactorAnalysis()
      Constructs a new instance of the algorithm.
  • Method Details

    • runSearch

      public Graph runSearch(DataModel dataModel, Parameters parameters)
      Executes a factor analysis search on the given data model using the provided parameters.
      Parameters:
      dataModel - The data model to perform the factor analysis on.
      parameters - The parameters for the factor analysis.
      Returns:
      The resulting graph after performing the factor analysis.
      Throws:
      IllegalArgumentException - If the data model is not a continuous dataset.
    • getComparisonGraph

      public Graph getComparisonGraph(Graph graph)
      Returns an undirected graph used for comparison.
      Specified by:
      getComparisonGraph in interface Algorithm
      Parameters:
      graph - The true directed graph, if there is one.
      Returns:
      The undirected graph for comparison.
    • getDescription

      public String getDescription()
      Returns a short, one-line description of this algorithm. This will be printed in the report.
      Specified by:
      getDescription in interface Algorithm
      Returns:
      The description of the algorithm.
    • getDataType

      public DataType getDataType()
      Returns the data type that the search requires, whether continuous, discrete, or mixed.
      Specified by:
      getDataType in interface Algorithm
      Returns:
      The data type required by the search.
    • getParameters

      public List<String> getParameters()
      Retrieves the parameters for the current instance of the FactorAnalysis class.
      Specified by:
      getParameters in interface HasParameters
      Returns:
      a list of strings representing the parameters for the factor analysis.