compare_models {MLZ} | R Documentation |
Model selection
Description
Produces a matrix of AIC for model selection.
Usage
compare_models(..., figure = TRUE, color = NULL)
Arguments
... |
Multiple objects of class |
figure |
If |
color |
Optional vector of colors for the figure each representing a separate model
in |
Examples
## 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)
[Package MLZ version 0.1.4 Index]