View source: R/asr_diagnostics.R
getLRnullDistribution | R Documentation |
Returns the p value of a likelihood ratio based on the simulated null distribution
getLRnullDistribution(
LR,
tree,
Q,
null_rm,
alt_rm,
nsims = 100,
plot = FALSE,
...
)
LR |
the likelihood ratio between two rate models |
tree |
the phylogenetic tree to obtain the null distribution on |
Q |
the transition matrix fit on the null rate model |
null_rm |
the null rate model (the simpler rate model) |
alt_rm |
the alternative rate model (the more complex rate model) |
nsims |
the number of simulations to use generate the null distribution |
plot |
a boolean expressing whether or not to plot a histogram of likeilhood ratios representing the null distribution |
the p value of a given likeihood ratio based on the null distribution that is generated
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.