Return the coefficients for the specified submodels.
# S3 method for lmSubsets
coef(object, size, best = 1, ..., na.rm = TRUE, drop = TRUE)# S3 method for lmSelect
coef(object, best = 1, ..., na.rm = TRUE, drop = TRUE)
"lmSubsets"
, "lmSelect"
---a subset
regression
integer[]
---the submodel sizes
integer[]
---the submodel positions
ignored
logical
---if TRUE
, remove NA
entries
logical
---if TRUE
, simplify structure
double[,]
, "data.frame"
---the submodel coefficients
lmSubsets()
for all-subsets
regression
lmSelect()
for best-subset
regression
coef()
for the S3 generic