Extracts coefficients from an object of class [sparselink].
Usage
# S3 method for class 'sparselink'
coef(object)
Value
Returns estimated coefficients. The output is a list with two slots: slot `alpha` with the estimated intercept (vector or length \(q\)), and slot `beta` with the estimated slopes (matrix with \(p\) rows and \(q\) columns).
References
Armin Rauschenberger, Petr N. Nazarov, Enrico Glaab (2025). "Estimating sparse regression models in multi-task learning and transfer learning through adaptive penalisation". Under revision. https://hdl.handle.net/10993/63425
Examples
family <- "gaussian"
data <- sim.data.transfer(family=family)
#data <- sim.data.multiple(family=family)
object <- sparselink(x=data$X_train,y=data$y_train,family=family)
#> alpha.init=0.95, alpha=1, trial=FALSE, type=exp
#> mode: transfer learning
coef <- coef(object=object)