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

# S3 method for joinet
weights(object, ...)

Arguments

object

joinet object

...

further arguments (not applicable)

Examples

n <- 30; q <- 2; p <- 20 Y <- matrix(rnorm(n*q),nrow=n,ncol=q) X <- matrix(rnorm(n*p),nrow=n,ncol=p) object <- joinet(Y=Y,X=X)
#> Warning: Negative correlation!
weights(object)
#> y1 y2 #> (Intercept) 0.565532 -0.3929572 #> V1 0.000000 3.3142619 #> V2 2.494110 0.1431946