weights.starnet {starnet}R Documentation

Extract Weights

Description

Extracts coefficients from the meta learner, i.e. the weights for the base learners.

Usage

## S3 method for class 'starnet'
weights(object, ...)

Arguments

object

starnet object

...

further arguments (not applicable)

Value

Vector containing intercept and slopes from the meta learner.

Examples



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)


[Package starnet version 0.0.6 Index]