Package edu.cmu.tetrad.bayes
Class BayesProperties
java.lang.Object
edu.cmu.tetrad.bayes.BayesProperties
Calculates some scores for Bayes nets as a whole.
- Version:
- $Id: $Id
- Author:
- josephramsey
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classThe LikelihoodRet class represents the result of a likelihood ratio test.
- 
Constructor SummaryConstructorsConstructorDescriptionBayesProperties(DataSet dataSet) Constructs a new BayesProperties object for the given data set.
- 
Method SummaryModifier and TypeMethodDescriptiondoublegetBic()Call after calling getLikelihoodP().doublegetChisq()Call after calling getLikelihoodP().doublegetDof()Call after calling getLikelihoodP().doubleCall after calling getLikelihoodP().getLikelihoodRatioP(Graph graph0) Calculates the p-value of the graph with respect to the given data, against the complete model as an alternative.intReturns the sample size.getVariable(String targetName) Returns the variable with the given name (assumed the target).
- 
Constructor Details- 
BayesPropertiesConstructs a new BayesProperties object for the given data set.- Parameters:
- dataSet- The data set.
 
 
- 
- 
Method Details- 
getLikelihoodRatioPCalculates the p-value of the graph with respect to the given data, against the complete model as an alternative.- Parameters:
- graph0- The model to test.
- Returns:
- The p-value.
 
- 
getChisqpublic double getChisq()Call after calling getLikelihoodP().- Returns:
- The chi-squared statistic.
 
- 
getDofpublic double getDof()Call after calling getLikelihoodP().- Returns:
- The degrees of freedom.
 
- 
getBicpublic double getBic()Call after calling getLikelihoodP().- Returns:
- The BIC.
 
- 
getLikelihoodpublic double getLikelihood()Call after calling getLikelihoodP().- Returns:
- The likelihood.
 
- 
getSampleSizepublic int getSampleSize()Returns the sample size.- Returns:
- The sample size.
 
- 
getVariableReturns the variable with the given name (assumed the target).- Parameters:
- targetName- The name of the target variable.
- Returns:
- a Nodeobject
 
 
-