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 TypeMethodDescriptiondoublegetBic()Call after calling getLikelihoodP().doublegetChisq()Call after calling getLikelihoodP().doublegetDof()Call after calling getLikelihoodP().doubleCall after calling getLikelihoodP().getLikelihoodRatioP(Graph graph) Calculates the p-value of the graph with respect to the given data.intgetVariable(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
-