weights.joinet.Rd 811 Bytes
 Armin Rauschenberger committed Jun 07, 2019 1 2 % Generated by roxygen2: do not edit by hand % Please edit documentation in R/functions.R  Armin Rauschenberger committed Jul 31, 2019 3 4 \name{weights.joinet} \alias{weights.joinet}  Armin Rauschenberger committed Jun 07, 2019 5 6 \title{Extract Weights} \usage{  Armin Rauschenberger committed Jul 31, 2019 7 \method{weights}{joinet}(object, ...)  Armin Rauschenberger committed Jun 07, 2019 8 9 } \arguments{  Armin Rauschenberger committed Jul 31, 2019 10 \item{object}{\link[joinet]{joinet} object}  Armin Rauschenberger committed Jun 07, 2019 11 12 13  \item{...}{further arguments (not applicable)} }  Armin Rauschenberger committed Aug 02, 2019 14 15 16 17 18 19 20 21 \value{ This function returns a matrix with \eqn{1+q} rows and \eqn{q} columns. The first row contains the intercepts, and the other rows contain the slopes, which are the effects of the outcomes in the row on the outcomes in the column. }  Armin Rauschenberger committed Jun 07, 2019 22 23 24 25 26 27 28 29 \description{ Extracts coefficients from the meta learner, i.e. the weights for the base learners. } \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)  Armin Rauschenberger committed Jul 31, 2019 30 object <- joinet(Y=Y,X=X)  Armin Rauschenberger committed Jun 07, 2019 31 32 33 weights(object) }