weights.joinet.Rd 811 Bytes
Newer Older
Armin Rauschenberger's avatar
Armin Rauschenberger committed
1 2
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
Armin Rauschenberger's avatar
Armin Rauschenberger committed
3 4
\name{weights.joinet}
\alias{weights.joinet}
Armin Rauschenberger's avatar
Armin Rauschenberger committed
5 6
\title{Extract Weights}
\usage{
Armin Rauschenberger's avatar
Armin Rauschenberger committed
7
\method{weights}{joinet}(object, ...)
Armin Rauschenberger's avatar
Armin Rauschenberger committed
8 9
}
\arguments{
Armin Rauschenberger's avatar
Armin Rauschenberger committed
10
\item{object}{\link[joinet]{joinet} object}
Armin Rauschenberger's avatar
Armin Rauschenberger committed
11 12 13

\item{...}{further arguments (not applicable)}
}
Armin Rauschenberger's avatar
Armin Rauschenberger committed
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's avatar
Armin Rauschenberger committed
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's avatar
Armin Rauschenberger committed
30
object <- joinet(Y=Y,X=X)
Armin Rauschenberger's avatar
Armin Rauschenberger committed
31 32 33
weights(object)

}