Class DmPc
java.lang.Object
edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
edu.cmu.tetrad.algcomparison.algorithm.oracle.pag.DmPc
- All Implemented Interfaces:
Algorithm,ReturnsBootstrapGraphs,TakesCovarianceMatrix,HasKnowledge,HasParameters,TakesIndependenceWrapper,TetradSerializable,Serializable
@Algorithm(name="DM-PC",
command="dm-pc",
algoType=allow_latent_common_causes)
@Bootstrapping
public class DmPc
extends AbstractBootstrapAlgorithm
implements Algorithm, TakesIndependenceWrapper, HasKnowledge, ReturnsBootstrapGraphs, TakesCovarianceMatrix
Detect-Mimic-PC (DM-PC) algorithm. This is intended to detect intermediate latent variables for Multiple Input
Multiple IndiCator (MIMIC) models. models.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionDmPc()Constructor for DM-PC.DmPc(IndependenceWrapper test) Constructor for DM-PC. -
Method Summary
Modifier and TypeMethodDescriptiongetComparisonGraph(Graph graph) Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).Retrieves the data type required by the search algorithm.Returns a short, one-line description of this algorithm.Retrieves the IndependenceWrapper object associated with this method.Retrieves the knowledge object associated with this method.Retrieves the list of parameters used by the algorithm.runSearch(DataModel dataModel, Parameters parameters) Runs a search algorithm to find a graph structure based on a given data set and parameters.voidSets the independence wrapper.voidsetKnowledge(Knowledge knowledge) Sets the knowledge object associated with this method.Methods inherited from class edu.cmu.tetrad.algcomparison.algorithm.AbstractBootstrapAlgorithm
getBootstrapGraphs, searchMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface edu.cmu.tetrad.algcomparison.algorithm.ReturnsBootstrapGraphs
getBootstrapGraphs
-
Constructor Details
-
DmPc
public DmPc()Constructor for DM-PC.
-
DmPc
Constructor for DM-PC.
- Parameters:
test- aIndependenceWrapperobject
-
-
Method Details
-
runSearch
Runs a search algorithm to find a graph structure based on a given data set and parameters.- Parameters:
dataModel- the data set to be used for the search algorithmparameters- the parameters for the search algorithm- Returns:
- the graph structure found by the search algorithm
- Throws:
InterruptedException
-
getComparisonGraph
Retrieves a comparison graph by transforming a true directed graph into a partially directed graph (PAG).- Specified by:
getComparisonGraphin interfaceAlgorithm- Parameters:
graph- The true directed graph, if there is one.- Returns:
- The comparison graph.
-
getDescription
Returns a short, one-line description of this algorithm. The description is generated by concatenating the descriptions of the test and score objects associated with this algorithm.- Specified by:
getDescriptionin interfaceAlgorithm- Returns:
- The description of this algorithm.
-
getDataType
Retrieves the data type required by the search algorithm.- Specified by:
getDataTypein interfaceAlgorithm- Returns:
- The data type required by the search algorithm.
-
getParameters
Retrieves the list of parameters used by the algorithm.- Specified by:
getParametersin interfaceHasParameters- Returns:
- The list of parameters used by the algorithm.
-
getKnowledge
Retrieves the knowledge object associated with this method.- Specified by:
getKnowledgein interfaceHasKnowledge- Returns:
- The knowledge object.
-
setKnowledge
Sets the knowledge object associated with this method.- Specified by:
setKnowledgein interfaceHasKnowledge- Parameters:
knowledge- the knowledge object to be set
-
getIndependenceWrapper
Retrieves the IndependenceWrapper object associated with this method. The IndependenceWrapper object contains an IndependenceTest that checks the independence of two variables conditional on a set of variables using a given dataset and parameters .- Specified by:
getIndependenceWrapperin interfaceTakesIndependenceWrapper- Returns:
- The IndependenceWrapper object associated with this method.
-
setIndependenceWrapper
Sets the independence wrapper.- Specified by:
setIndependenceWrapperin interfaceTakesIndependenceWrapper- Parameters:
test- the independence wrapper.
-