Description Usage Arguments Value
Type II Maximum Likelihood Estimation for hyperparameters of a Phylogenetic Ornstein-Uhlenbeck Process.
1 2 3 4 | pou_type2mle(observations, phylogenetic_tree, logl_function = pou_logl_slow,
optim_function = "optim", optim_method = "Nelder-Mead",
lower_initialisation = c(0, 0, 0), upper_initialisation = c(1, 1, 1),
n_restarts = 1)
|
observations |
Observations from the tips of the phylogenetic tree |
phylogenetic_tree |
Phylogenetic tree of relationships between observations |
logl_function |
function calculating the negative log likelihood of the observations to be minimised. Either 'pou_logl_slow' or 'pou_logl_fast'. |
optim_function |
String indicating which optimising function to use, 'optim' or 'uobyqa' from the minqa package. |
optim_method |
Method to be used with the optim optimiser. |
lower_initialisation |
Lower bound for the uniform random variable used to generate initial values. |
upper_initialisation |
Upper bound for the uniform random variable used to generate initial values. |
n_restarts |
Number of different initialisation values to test. |
Vector of optimised hyperparameters and the corresponding negative log likelihood, in order (phylogenetic noise, phylogenetic length-scale, non-phylogenetic noise, negative log likelihood) @export
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.