Extracts pooled coefficients. (The meta learners linearly combines the coefficients from the base learners.)

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

Arguments

object

joinet object

...

further arguments (not applicable)

Value

This function returns the pooled coefficients. The slot alpha contains the intercepts in a vector of length \(q\), and the slot beta contains the slopes in a matrix with \(p\) rows (inputs) and \(q\) columns.

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) coef <- coef(object)