Package edu.cmu.tetrad.bayes
Class BayesProperties
java.lang.Object
edu.cmu.tetrad.bayes.BayesProperties
Calculates some scores for Bayes nets as a whole.
- Author:
- josephramsey
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
getBic()
Call after calling getLikelihoodP().double
getChisq()
Call after calling getLikelihoodP().double
getDof()
Call after calling getLikelihoodP().double
Call after calling getLikelihoodP().getLikelihoodRatioP
(Graph graph) Calculates the p-value of the graph with respect to the given data.int
getVariable
(String targetName)
-
Constructor Details
-
BayesProperties
-
-
Method Details
-
getLikelihoodRatioP
Calculates the p-value of the graph with respect to the given data.- Parameters:
graph
- The graph.
-
getChisq
public double getChisq()Call after calling getLikelihoodP().- Returns:
- The chi-squared statistic.
-
getDof
public double getDof()Call after calling getLikelihoodP().- Returns:
- The degrees of freedom.
-
getBic
public double getBic()Call after calling getLikelihoodP().- Returns:
- The BIC.
-
getLikelihood
public double getLikelihood()Call after calling getLikelihoodP().- Returns:
- The likelihood.
-
getSampleSize
public int getSampleSize() -
getVariable
-