weights.starnet {starnet} | R Documentation |
Extracts coefficients from the meta learner, i.e. the weights for the base learners.
## S3 method for class 'starnet'
weights(object, ...)
object |
starnet object |
... |
further arguments (not applicable) |
Vector containing intercept and slopes from the meta learner.
set.seed(1)
n <- 50; p <- 100
y <- rnorm(n=n)
X <- matrix(rnorm(n*p),nrow=n,ncol=p)
object <- starnet(y=y,X=X)
weights(object)