The Likelihood Ratio Test (LRT) is a standard method for
testing whether or not the data likelihood conferred by a
more complex is significantly better than the data
likelihood conferred by the simpler model. See
lrttest_on_summary_table for more
AICstats_2models(LnL_1, LnL_2, numparams1, numparams2)
Log-likelihood of more complex model.
Log-likelihood of simpler complex model.
Number of free parameters of the more complex model.
Number of free parameters of the less complex model.
See Burnham et al. (2002) and http://www.brianomeara.info/tutorials/aic for discussion of AIC and its uses.
This function assumes that
numparams1 refer to the more complex model, and
numparams2 refer to the
simpler model nested within the more complex one.
LRT_AIC_results A table of LRT and AIC results.
Nicholas J. Matzke firstname.lastname@example.org
Loading required package: rexpokit Loading required package: SparseM Attaching package: 'SparseM' The following object is masked from 'package:base': backsolve Loading required package: Rcpp Loading required package: cladoRcpp Loading required package: ape Loading required package: phylobase Attaching package: 'phylobase' The following object is masked from 'package:ape': edges
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.