coef.abesspca {abess} | R Documentation |
Extract Sparse Loadings from a fitted "abesspca
" object.
Description
This function provides estimated
coefficients from a fitted "abesspca
" object.
Usage
## S3 method for class 'abesspca'
coef(object, support.size = NULL, kpc = NULL, sparse = TRUE, ...)
Arguments
object |
An " |
support.size |
An integer vector specifies
the coefficient fitted at given |
kpc |
An integer vector specifies
the coefficient fitted at given principal component.
If |
sparse |
A logical value, specifying whether the coefficients should be
presented as sparse matrix or not. Default: |
... |
Other arguments. |
Value
A matrix with length(support.size)
columns.
Each column corresponds to a sparse loading for the first principal component,
where the number of non-zeros entries depends on the support.size
.
See Also
print.abesspca
,
coef.abesspca
,
plot.abesspca
.