coef.joinet.html 8.52 KB
 Armin Rauschenberger committed Oct 02, 2020 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76  Extract Coefficients — coef.joinet • joinet

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

 Armin Rauschenberger committed Nov 02, 2020 158 159 160 
if(!grepl('SunOS',Sys.info()['sysname'])){ 1+1 n <- 50; p <- 100; q <- 3  Armin Rauschenberger committed Oct 02, 2020 161 162 163 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)  Armin Rauschenberger committed Nov 02, 2020 164 165 coef <- coef(object) }
 Armin Rauschenberger committed Oct 02, 2020 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193