coef.spar {spareg} | R Documentation |
coef.spar
Description
Extract coefficients from 'spar'
object
Usage
## S3 method for class 'spar'
coef(
object,
nummod = NULL,
nu = NULL,
aggregate = c("mean", "median", "none"),
...
)
Arguments
object |
result of spar function of class |
nummod |
number of models used to form coefficients; value with minimal
validation |
nu |
threshold level used to form coefficients; value with minimal
validation |
aggregate |
character one of c("mean", "median", "none"). If set to "none" the coefficients are not aggregated over the marginal models, otherwise the coefficients are aggregated using the specified method (mean or median). Defaults to mean aggregation. |
... |
further arguments passed to or from other methods |
Value
object of class 'coefspar'
which is a list with elements
-
intercept
intercept value -
beta
vector of length p of averaged coefficients -
nummod
number of models based on which the coefficient is computed -
nu
threshold based on which the coefficient is computed
See Also
print.coefspar, summary.coefspar