coef.bess.one: Provides estimated coefficients from a fitted "bess.one"...

Description Usage Arguments Author(s) References See Also Examples

View source: R/coef.bess.R

Description

Similar to other prediction methods, this function provides estimated coefficients from a fitted "bess.one" object.

Usage

1
2
    ## S3 method for class 'bess.one'
coef(object, sparse = TRUE , ...)

Arguments

object

A "bess.one" project.

sparse

Logical or NULL, specifying whether the coefficients should be presented as sparse matrix or not.

...

Other arguments.

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
data <- gen.data(500, 20, family = "gaussian", 10, 0.2, 1)
fit <- bess.one(data$x, data$y, s = 10, family = "gaussian")
coef(fit, sparse=TRUE)  # The estimated coefficients

scrcss319/BeSS documentation built on May 18, 2019, 9:14 p.m.