coef.joinet.html 8.03 KB
 Armin Rauschenberger committed Mar 15, 2019 1 2   Armin Rauschenberger committed Jul 31, 2019 3   Armin Rauschenberger committed Mar 15, 2019 4 5 6 7 8   Armin Rauschenberger committed Jul 31, 2019 9 Extract Coefficients — coef.joinet • joinet  Armin Rauschenberger committed Mar 15, 2019 10 11   Armin Rauschenberger committed Jul 31, 2019 12   Armin Rauschenberger committed Mar 15, 2019 13   Armin Rauschenberger committed Jul 31, 2019 14   Armin Rauschenberger committed Mar 15, 2019 15   Armin Rauschenberger committed Jul 31, 2019 16   Armin Rauschenberger committed Mar 15, 2019 17 18   Armin Rauschenberger committed Jul 31, 2019 19   Armin Rauschenberger committed Mar 15, 2019 20 21   Armin Rauschenberger committed Jul 31, 2019 22   Armin Rauschenberger committed Mar 15, 2019 23 24 25 26 27 28 29 30 31 32   Armin Rauschenberger committed Jul 31, 2019 33   Armin Rauschenberger committed Mar 15, 2019 34   Armin Rauschenberger committed Jun 07, 2019 35   Armin Rauschenberger committed Mar 15, 2019 38 39 40 41 42   Armin Rauschenberger committed Jul 31, 2019 43 44   Armin Rauschenberger committed Mar 15, 2019 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 
 Armin Rauschenberger committed Jun 07, 2019 120 

Extracts pooled coefficients.  Armin Rauschenberger committed Jul 31, 2019 121 122 (The meta learners linearly combines the coefficients from the base learners.)

 Armin Rauschenberger committed Mar 15, 2019 123 124 125 
 Armin Rauschenberger committed Jul 31, 2019 126 
# S3 method for joinet 
Armin Rauschenberger committed Jul 31, 2019  127                                                                                                                coef(object, ...)
 Armin Rauschenberger committed Mar 15, 2019 128 129 130 131 132 

Arguments

object

joinet object

...

further arguments (not applicable)

 Armin Rauschenberger committed Jun 07, 2019 133   Armin Rauschenberger committed Jul 31, 2019 134   Armin Rauschenberger committed Mar 15, 2019 135 136 137 138 139 140 141   Armin Rauschenberger committed Aug 02, 2019 142 143 144 145 146 147 148 149 

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.

 Armin Rauschenberger committed Mar 15, 2019 150 151 

Examples

 Armin Rauschenberger committed Aug 06, 2019 152 
n <- 50; q <- 3; p <- 100  Armin Rauschenberger committed Jul 31, 2019 153 X <- matrix(rnorm(n*p),nrow=n,ncol=p)  Armin Rauschenberger committed Aug 06, 2019 154 Y <- replicate(n=q,expr=rnorm(n=n,mean=rowSums(X[,1:5])))  Armin Rauschenberger committed Jul 31, 2019 155 object <- joinet(Y=Y,X=X)  Armin Rauschenberger committed Jul 31, 2019 156 coef <- coef(object)
 Armin Rauschenberger committed Mar 15, 2019 157 158 159 160 161