Skip to contents

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

Usage

# S3 method for class '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

if (FALSE) { # \dontrun{
n <- 50; p <- 100; q <- 3
X <- matrix(rnorm(n*p),nrow=n,ncol=p)
Y <- replicate(n=q,expr=rnorm(n=n,mean=rowSums(X[,1:5])))
object <- joinet(Y=Y,X=X)
coef <- coef(object)} # }