The functions listed below are deprecated and will be defunct in
the near future. When possible, alternative functions with similar
functionality are also mentioned. Help pages for deprecated functions are
available at help("-deprecated")
.
Runs a reversible-jump Markov chain Monte Carlo on continuous phenotypic data on a phylogeny, sampling possible shift locations and shift magnitudes, and shift numbers.
bayou.mcmc(tree, dat, SE = 0, model = "OU", prior, ngen = 10000,
samp = 10, chunk = 100, control = NULL, tuning = NULL,
new.dir = FALSE, plot.freq = 500, outname = "bayou",
plot.fn = phenogram, ticker.freq = 1000, tuning.int = c(0.1, 0.2, 0.3),
startpar = NULL, moves = NULL, control.weights = NULL, lik.fn = NULL)
a phylogenetic tree of class 'phylo'
a named vector of continuous trait values matching the tips in tree
The standard error of the data. Either a single value applied to all the data, or a vector of length(dat).
The parameterization of the OU model used. Either "OU" for standard parameterization with alpha and sigma^2; "OUrepar" for phylogenetic half-life and stationary variance (Vy), or "QG" for the Lande model, with parameters h^2 (heritability), P (phenotypic variance), omega^2 (width of adaptive landscape), and Ne (effective population size)
A prior function of class 'priorFn' that gives the prior distribution of all parameters
The number of generations to run the Markov Chain
The frequency at which Markov samples are retained
The number of samples retained in memory before being written to a file
A list providing a control object governing how often and which proposals are used
A named vector that governs how liberal or conservative proposals are that equals the number of proposal mechanisms.
If TRUE, then results are stored in a new temporary directory. If FALSE, results are written to the current working directory. If a character string, then results are written to that working directory.
How often plots should be made during the mcmc. If NULL, then plots are not produced
The prefix given to files created by the mcmc
Function used in plotting, defaults to phytools::phenogram
How often a summary log should be printed to the screen
How often the tuning parameters should be adjusted as a fraction of the total number of generations (currently ignored)
A list with the starting parameters for the mcmc. If NULL, starting parameters are simulated from the prior distribution
A named list providing the proposal functions to be used in the mcmc. Names correspond to the parameters to be modified in the parameter list. See 'details' for default values.
A named vector providing the relative frequency each proposal mechanism is to be used during the mcmc
Likelihood function to be evaluated. Defaults to bayou.lik
.
This function is deprecated, please use bayou.makeMCMC
.