Package edu.cmu.tetrad.search
Class DmPc
java.lang.Object
edu.cmu.tetrad.search.DmPc
- All Implemented Interfaces:
- IGraphSearch
The Detect-Mimic-PC (DM-PC) algorithm. This is intended to detect intermediate latent variables for Multiple Input *
 Multiple IndiCator (MIMIC) models. models. This implements a causal discovery algorithm for detecting and
 representing intermediate latent variables and their causal relationships in a dataset. The algorithm utilizes
 constraint-based causal discovery techniques, clustering, and structure refinement to build a causal graph that
 incorporates latent variables.
 
The class requires an `IndependenceTest` to perform statistical independence checks on variable pairs or groups, which is central to its operation.
- Author:
- murraywaters, josephramsey
- 
Constructor SummaryConstructorsConstructorDescriptionDmPc(IndependenceTest test) Constructs an instance of the DmPc class using the specified independence test.
- 
Method SummaryModifier and TypeMethodDescriptiongetTest()Gets the test used by the search.search()Executes the Directed Maximal PC (DmPc) algorithm to identify a causal graph structure that represents the relationships between observed and latent variables.voidsetKnowledge(Knowledge knowledge) Sets the knowledge for the current instance.voidsetTest(IndependenceTest test) Sets the test to be used by the search.
- 
Constructor Details- 
DmPcConstructs an instance of the DmPc class using the specified independence test.- Parameters:
- test- An instance of the- IndependenceTestinterface, used to perform conditional independence tests as part of the algorithm.
 
 
- 
- 
Method Details- 
searchExecutes the Directed Maximal PC (DmPc) algorithm to identify a causal graph structure that represents the relationships between observed and latent variables. The method performs several steps including initialization, clustering, introducing latent nodes, refining edges, and final adjustments to produce the resultant graph.- Specified by:
- searchin interface- IGraphSearch
- Returns:
- A causal Graphthat represents the inferred structure of relationships among variables, incorporating both observed and latent variables.
 
- 
getTestDescription copied from interface:IGraphSearchGets the test used by the search.- Specified by:
- getTestin interface- IGraphSearch
- Returns:
- The test used by the search.
 
- 
setTestDescription copied from interface:IGraphSearchSets the test to be used by the search. The list of variables of the new proposed test must be equal to the list of variables of the existing test.- Specified by:
- setTestin interface- IGraphSearch
- Parameters:
- test- The test to be used by the search.
 
- 
setKnowledgeSets the knowledge for the current instance. The provided knowledge is used in the context of the DmPc algorithm to guide the structure learning process by incorporating prior information or constraints.- Parameters:
- knowledge- An instance of the- Knowledgeclass that encapsulates domain-specific rules, constraints, or prior knowledge to be applied.
 
 
-