plot.bess: Produces a coefficient profile plot of the coefficient or...

Description Usage Arguments Author(s) References See Also Examples

View source: R/plot.bess.R

Description

Produces a coefficient profile plot of the coefficient or loss paths for a fitted "bess" object.

Usage

1
2
  ## S3 method for class 'bess'
plot(x, type=c("loss","coefficients","both"), breaks=TRUE, K=NULL, ...)

Arguments

x

a "bess" project

type

Either "both", "solutionPath" or "loss"

breaks

If TRUE, then vertical lines are drawn at each break point in the coefficient paths

K

which break point should the vertical lines drawn at

...

Other graphical parameters to plot

Author(s)

Canhong Wen, Aijun Zhang, Shijie Quan, and Xueqin Wang.

References

Wen, C., Zhang, A., Quan, S. and Wang, X. (2017). BeSS: an R package for best subset selection in linear, logistic and CoxPH models. arXiv: 1709.06254.

See Also

bess, bess.one

Examples

1
2
3
4
5
#--------------linear model--------------#

data <- gen.data(500, 20, family = "gaussian", 10, 0.2, 1)
fit <- bess(data$x, data$y, family = "gaussian")
plot(fit, type = "both")

BeSS documentation built on Jan. 30, 2018, 5:03 p.m.