Description Usage Arguments Details Value Author(s) Examples
Graphically compares models in terms of Information Criterion, each one corresponds to a model where a specific variable is deleted from the linear predictor.
1 2 |
model |
a model supported by |
k |
numeric, the penalty per parameter to be used; the default |
update.it |
logical; if TRUE, model without the variable corresponding to the lowest score is returned. |
xlab |
title for the x axis. |
ylab |
title for the y axis, by default is 'AIC'; should be changed if a different k is chosen. |
pch |
type of points. |
col |
color of points and segments. |
lty |
type of horizontal line. |
ylim |
y limits of the plot. |
... |
further arguments passed to |
Each plotted point corresponds to the score of the model where the variable indicated on x axis is excluded. A dashed line is drawn in correspondence of the full model score.
Points and segments corresponding to variables whose deletion lead to a increment of the scored are black, those who lead to a decrement are red.
The output plot can be seen as a graphic version of the first step of stepAIC
function inside MASS
package.
Theory about Information Criterion suggests that if the minimum score doesn't belong to the full model, then the linear predictor may not be appropriate.
Called for side effects, but if update.it
is set to TRUE returns a model without the variable corresponding to the lowest score.
Giuseppe Reale
1 2 3 4 5 6 | |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.