View source: R/compare_models.R
compare_models | R Documentation |
Produces a matrix of AIC for model selection.
compare_models(..., figure = TRUE, color = NULL)
... |
Multiple objects of class |
figure |
If |
color |
Optional vector of colors for the figure each representing a separate model
in |
## Not run: data(Goosefish) goose <- ML(Goosefish, ncp = 0) goose1 <- ML(Goosefish, ncp = 1) goose2 <- ML(Goosefish, ncp = 2, grid.search = TRUE, figure = FALSE) compare_models(goose, goose1, goose2) data(PRSnapper) ssm <- MLmulti(PRSnapper, ncp = 1, model = "SSM") msm1 <- MLmulti(PRSnapper, ncp = 1, model = "MSM1") msm2 <- MLmulti(PRSnapper, ncp = 1, model = "MSM2") msm3 <- MLmulti(PRSnapper, ncp = 1, model = "MSM3") compare_models(ssm, msm1, msm2, msm3) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.