lrtest: Likelihood ratio test for BayesTraitsV3 models.

Description Usage Arguments Details Value Author(s) References

View source: R/lrtest.R

Description

Perform likelihood ratio test for a pair of bayestraits results.

Usage

1
lrtest(model1, model2)

Arguments

model1

output from bayestraits in Maximum Likelihood mode. Can include one or more models, but must have the same number of models as model2.

model2

output from bayestraits in Maximum Likelihood mode. Can include one or more models, but must have the same number of models as model1.

Details

If there are multiple models in the bayestraits output (e.g., models were fit across a sample of phylogenies), then the likelihood ratio test is performed for each pair of models and a separate row of results is generated for each pair.

Value

Results from likelihood ratio test(s) in a dataframe.

Author(s)

Randi H. Griffin

References

Wilks, S.S. (1938). "The Large-Sample Distribution of the Likelihood Ratio for Testing Composite Hypotheses". The Annals of Mathematical Statistics 9: 60-62.


rgriff23/btw documentation built on Nov. 5, 2018, 11:41 p.m.