Class IndTestFisherZRecursive
java.lang.Object
edu.cmu.tetrad.search.work_in_progress.IndTestFisherZRecursive
- All Implemented Interfaces:
- IndependenceTest
Checks conditional independence of variable in a continuous data set using Fisher's Z test. See Spirtes, Glymour, and
 Scheines, "Causation, Prediction and Search," 2nd edition, page 94.
- Version:
- $Id: $Id
- Author:
- josephramsey, Frank Wimberly adapted IndTestCramerT for Fisher's Z
- 
Constructor SummaryConstructorsConstructorDescriptionIndTestFisherZRecursive(DataSet dataSet, double alpha) Constructs a new Independence test which checks independence facts based on the correlation matrix implied by the given data set (must be continuous).IndTestFisherZRecursive(ICovarianceMatrix covMatrix, double alpha) Constructs a new independence test that will determine conditional independence facts using the given correlation matrix and the given significance level.IndTestFisherZRecursive(Matrix data, List<Node> variables, double alpha) Constructs a new Fisher Z independence test with the listed arguments.
- 
Method SummaryModifier and TypeMethodDescriptioncheckIndependence(Node x, Node y, Set<Node> z) Checks the independence between two variables x and y given a conditioning set z.booleandetermines(Set<Node> _z, Node x) Returns true if y is determined the variable in z.doublegetAlpha()Gets the getModel significance level.getCov()getCov.getData()getData.Returns the datasets for this testdoublegetPValue.intReturns the sample size.getVariable(String name) Returns The variable by the given name.Getter for the fieldvariables.indTestSubset(List<Node> vars) Returns an Independence test for a sublist of the variables.booleanisVerbose.voidsetAlpha(double alpha) Sets the significance level.voidsetVariables(List<Node> variables) Setter for the fieldvariables.voidsetVerbose(boolean verbose) Sets whether this test will print verbose output.toString()toString.Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.search.IndependenceTestcheckIndependence, getVariableNames
- 
Constructor Details- 
IndTestFisherZRecursiveConstructs a new Independence test which checks independence facts based on the correlation matrix implied by the given data set (must be continuous). The given significance level is used.- Parameters:
- dataSet- A data set containing only continuous columns.
- alpha- The alpha level of the test.
 
- 
IndTestFisherZRecursiveConstructs a new Fisher Z independence test with the listed arguments.- Parameters:
- data- A 2D continuous data set with no missing values.
- variables- A list of variables, a subset of the variables of- data.
- alpha- The significance cutoff level. p values less than alpha will be reported as dependent.
 
- 
IndTestFisherZRecursiveConstructs a new independence test that will determine conditional independence facts using the given correlation matrix and the given significance level.- Parameters:
- covMatrix- a- ICovarianceMatrixobject
- alpha- a double
 
 
- 
- 
Method Details- 
indTestSubsetReturns an Independence test for a sublist of the variables.Creates a new independence test instance for a subset of the variables. - Specified by:
- indTestSubsetin interface- IndependenceTest
- Parameters:
- vars- The sublist of variables.
- Returns:
- a IndependenceTestobject
 
- 
checkIndependenceChecks the independence between two variables x and y given a conditioning set z.Determines whether variable x is independent of variable y given a list of conditioning variables z. - Specified by:
- checkIndependencein interface- IndependenceTest
- Parameters:
- x- a- Nodeobject
- y- a- Nodeobject
- z- a- Setobject
- Returns:
- a IndependenceResultobject
 
- 
getPValuepublic double getPValue()getPValue. - Returns:
- the probability associated with the most recently computed independence test.
 
- 
getAlphapublic double getAlpha()Gets the getModel significance level.- Specified by:
- getAlphain interface- IndependenceTest
- Returns:
- a double
 
- 
setAlphapublic void setAlpha(double alpha) Sets the significance level.Sets the significance level at which independence judgments should be made. Affects the cutoff for partial correlations to be considered statistically equal to zero. - Specified by:
- setAlphain interface- IndependenceTest
- Parameters:
- alpha- This level.
 
- 
getVariablesGetter for the field variables.- Specified by:
- getVariablesin interface- IndependenceTest
- Returns:
- the list of variables over which this independence checker is capable of determinine independence relations-- that is, all the variables in the given graph or the given data set.
 
- 
setVariablesSetter for the field variables.- Parameters:
- variables- a- Listobject
 
- 
getVariableReturns The variable by the given name.- Specified by:
- getVariablein interface- IndependenceTest
- Parameters:
- name- a- Stringobject
- Returns:
- This variable.
 
- 
determinesReturns true if y is determined the variable in z.If isDeterminismAllowed(), deters to IndTestFisherZD; otherwise throws UnsupportedOperationException.- Specified by:
- determinesin interface- IndependenceTest
- Parameters:
- _z- a- Setobject
- x- a- Nodeobject
- Returns:
- True, if so.
- Throws:
- UnsupportedOperationException
 
- 
getDatagetData. - Specified by:
- getDatain interface- IndependenceTest
- Returns:
- the data set being analyzed.
 
- 
toStringtoString. - Specified by:
- toStringin interface- IndependenceTest
- Overrides:
- toStringin class- Object
- Returns:
- a string representation of this test.
 
- 
getCovgetCov. - Specified by:
- getCovin interface- IndependenceTest
- Returns:
- a ICovarianceMatrixobject
 
- 
getDataSetsReturns the datasets for this test- Specified by:
- getDataSetsin interface- IndependenceTest
- Returns:
- these datasets.
 
- 
getSampleSizepublic int getSampleSize()Returns the sample size.- Specified by:
- getSampleSizein interface- IndependenceTest
- Returns:
- This size.
 
- 
isVerbosepublic boolean isVerbose()isVerbose. - Specified by:
- isVerbosein interface- IndependenceTest
- Returns:
- a boolean
 
- 
setVerbosepublic void setVerbose(boolean verbose) Sets whether this test will print verbose output.- Specified by:
- setVerbosein interface- IndependenceTest
- Parameters:
- verbose- True, if so.
 
 
-