| Copyright | (c) Dominik Schrempf 2021 | 
|---|---|
| License | GPL-3.0-or-later | 
| Maintainer | dominik.schrempf@gmail.com | 
| Stability | unstable | 
| Portability | portable | 
| Safe Haskell | None | 
| Language | Haskell2010 | 
Mcmc.MarginalLikelihood
Description
Creation date: Mon Jan 11 16:34:18 2021.
Synopsis
- type MarginalLikelihood = Log Double
 - newtype NPoints = NPoints {
- fromNPoints :: Int
 
 - data MLAlgorithm
 - data MLSettings = MLSettings {}
 - marginalLikelihood :: ToJSON a => MLSettings -> PriorFunction a -> LikelihoodFunction a -> Cycle a -> Monitor a -> InitialState a -> GenIO -> IO MarginalLikelihood
 
Documentation
type MarginalLikelihood = Log Double Source #
Marginal likelihood values are stored in log domain.
The number of points used to approximate the path integral.
Constructors
| NPoints | |
Fields 
  | |
data MLAlgorithm Source #
Algorithms to calculate the marginal likelihood.
Constructors
| ThermodynamicIntegration | Use a classical path integral. Also known as thermodynamic integration. In particular, Annealing-Melting Integration is used. See Lartillot, N., & Philippe, H., Computing Bayes Factors Using Thermodynamic Integration, Systematic Biology, 55(2), 195–207 (2006). http://dx.doi.org/10.1080/10635150500433722  | 
| SteppingStoneSampling | Use stepping stone sampling. See Xie, W., Lewis, P. O., Fan, Y., Kuo, L., & Chen, M., Improving marginal likelihood estimation for Bayesian phylogenetic model selection, Systematic Biology, 60(2), 150–160 (2010). http://dx.doi.org/10.1093/sysbio/syq085 Or Fan, Y., Wu, R., Chen, M., Kuo, L., & Lewis, P. O., Choosing among partition models in bayesian phylogenetics, Molecular Biology and Evolution, 28(1), 523–532 (2010). http://dx.doi.org/10.1093/molbev/msq224  | 
Instances
| Eq MLAlgorithm Source # | |
Defined in Mcmc.MarginalLikelihood  | |
| Read MLAlgorithm Source # | |
Defined in Mcmc.MarginalLikelihood Methods readsPrec :: Int -> ReadS MLAlgorithm # readList :: ReadS [MLAlgorithm] # readPrec :: ReadPrec MLAlgorithm # readListPrec :: ReadPrec [MLAlgorithm] #  | |
| Show MLAlgorithm Source # | |
Defined in Mcmc.MarginalLikelihood Methods showsPrec :: Int -> MLAlgorithm -> ShowS # show :: MLAlgorithm -> String # showList :: [MLAlgorithm] -> ShowS #  | |
data MLSettings Source #
Settings of the marginal likelihood estimation.
Constructors
| MLSettings | |
Fields 
  | |
Instances
| Eq MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood  | |
| Read MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood Methods readsPrec :: Int -> ReadS MLSettings # readList :: ReadS [MLSettings] # readPrec :: ReadPrec MLSettings # readListPrec :: ReadPrec [MLSettings] #  | |
| Show MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood Methods showsPrec :: Int -> MLSettings -> ShowS # show :: MLSettings -> String # showList :: [MLSettings] -> ShowS #  | |
| HasVerbosity MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood Methods getVerbosity :: MLSettings -> Verbosity Source #  | |
| HasLogMode MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood Methods getLogMode :: MLSettings -> LogMode Source #  | |
| HasAnalysisName MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood Methods  | |
| HasExecutionMode MLSettings Source # | |
Defined in Mcmc.MarginalLikelihood Methods  | |
Arguments
| :: ToJSON a | |
| => MLSettings | |
| -> PriorFunction a | |
| -> LikelihoodFunction a | |
| -> Cycle a | |
| -> Monitor a | |
| -> InitialState a | |
| -> GenIO | A source of randomness. For reproducible runs, make sure to use generators with the same seed.  | 
| -> IO MarginalLikelihood | 
Estimate the marginal likelihood.