compareModels | R Documentation |
Takes output from model-fitting functions and compiles model-fit information (log-likelihood, AICc, etc.) into a convenient table
compareModels(..., silent = FALSE, sort = FALSE)
... |
any number of model fit ( |
silent |
if |
sort |
if |
if silent = FALSE
, the table is printed and nothing is
returned. If silent = TRUE
, printing is suppressed and a list of
two objects is returned: the table of model fits, modelFits
, and a
list of parameter estimates, pl
.
x <- sim.GRW(ns = 40, ms = 0.5, vs = 0.1)
m1 <- fitSimple(x, model = "GRW") # the true model
m2 <- fitSimple(x, model = "URW")
plot(x, modelFit = m1)
compareModels(m1, m2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.