barplot.choicemod: Barplots of choicemode

Description Usage Arguments See Also Examples

Description

This function gives two types of barplots for a given regression method: the barplot of the occurences (in percent) of selection of each covariates and the barplot of the occurences (in percent) of the number of selected covariates (size of the reduced model).

Usage

1
2
3
## S3 method for class 'choicemod'
barplot(res, method = "linreg", type = "varsel",
  xlab = NULL, ylab = NULL, ...)

Arguments

res

an object of class choicemod.

method

a regression methods in res$method ( "linreg", "sir", "rf", "pcr", "plsr", "ridge").

type

if "varsel" the occurences (in percent) of selection of each covariates are plotted. If "modsize" the occurences (in percent) of the sizes of the reduced models are plotted.

xlab

X axis label ("size of the reduced model" by default when when type="modsize").

ylab

Y axis label ("percent" by default).

...

further arguments passed to or from other methods.

See Also

choicemod, boxplot.choicemod

Examples

1
2
3
4
5
6
data("simus")
res <- simus$res1
class(res)
res$method
barplot(res, method="sir", type="varsel", las = 2,  main = "sir", col = rgb(1,1,0,0.2))
barplot(res, method="sir", type="sizemod", las = 2, main = "sir", col = rgb(0,1,1,0.2))

chavent/modvarsel documentation built on May 22, 2019, 2:22 p.m.