Package pal.statistics
Class ModelSupport
java.lang.Object
pal.statistics.ModelSupport
- All Implemented Interfaces:
Report
Computes Akaike weights and expected Akaike weights
(relative evidence, expected relative evidence)
for a set of models and computes corresponding confidence sets
- Version:
- $Id: ModelSupport.java,v 1.3 2001/07/13 14:39:13 korbinian Exp $
- Author:
- Korbinian Strimmer
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble[]
log-likelihood differences to the best treeint[]
likelhood order of the tree hypothesesint
number of bootstrap replicatesdouble[]
posterior probabilities for each hypothesisdouble[]
support in each hypothesisint[]
support order of the tree hypotheses -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
compare
(double[][] sLogL, int numBoot) Determine posterior probabilties and support values for each hypothesis and store results in public arrays posterior, support etc which will automatically be created by this procedure.void
compare
(double[][] pLogL, int[] alias, int numBoot) Determine posterior probabilties and support values for each hypothesis and store results in public arrays posterior, support etc which will automatically be created by this procedure.void
report
(PrintWriter out) print human readable report (e.g., on parameters and associated model)
-
Field Details
-
likelihoodOrder
public int[] likelihoodOrderlikelhood order of the tree hypotheses -
supportOrder
public int[] supportOrdersupport order of the tree hypotheses -
deltaL
public double[] deltaLlog-likelihood differences to the best tree -
posterior
public double[] posteriorposterior probabilities for each hypothesis -
support
public double[] supportsupport in each hypothesis -
numBootstraps
public int numBootstrapsnumber of bootstrap replicates
-
-
Constructor Details
-
ModelSupport
public ModelSupport()
-
-
Method Details
-
compare
public void compare(double[][] sLogL, int numBoot) Determine posterior probabilties and support values for each hypothesis and store results in public arrays posterior, support etc which will automatically be created by this procedure.- Parameters:
sLogL
- log-likelihoods of each sitenumBoot
- number of bootstraps
-
compare
public void compare(double[][] pLogL, int[] alias, int numBoot) Determine posterior probabilties and support values for each hypothesis and store results in public arrays posterior, support etc which will automatically be created by this procedure.- Parameters:
pLogL
- log-likelihoods of each patternalias
- map of patterns to sites in sequencenumBoot
- number of bootstraps
-
report
Description copied from interface:Report
print human readable report (e.g., on parameters and associated model)
-