coef.cv.compCL: get coefficients or make coefficient predictions from a...

Description Usage Arguments Value

Description

This function gets coefficients or makes coefficient predictions from a cross-validated compCL model, using the stored "compCL.fit" object, and the optimal value chosen for lam.

Usage

1
2
3
## S3 method for class 'cv.compCL'
coef(object, trim = FALSE, s = c("lam.min", "lam.1se"),
  ...)

Arguments

object

fitted cv.compCL object.

trim

logical, used the trimmed result or not. Default is FASLE.

s

value(s) of the penalty parameter lam at which predictions are required. Default is the value s="lam.min" stored on the CV object, it is the optimal value of lam that gives minimum. Alternatively s="lambda.min" can be used, it is the largest value of lam such that error is within 1 standard error of the minimum. If s is numeric, it is taken as the value(s) of lam to be used.

...

not used. Other arguments to predict.

Value

The coefficients at the requested values for lam.


jiji6454/Rpac_compReg documentation built on May 31, 2019, 5:01 a.m.