View source: R/CGGP_append_fs.R
| CGGP_internal_calcMSEde | R Documentation | 
Delta of adding block is product over i=1..d of IMSE(i,j-1) - IMSE(i,j)
CGGP_internal_calcMSEde(valsinds, MSE_MAP)
valsinds | 
 Block levels to calculate MSEs for  | 
MSE_MAP | 
 Matrix of MSE values  | 
All MSE values
SG <- CGGPcreate(d=3, batchsize=100)
y <- apply(SG$design, 1, function(x){x[1]+x[2]^2})
SG <- CGGPfit(SG, Y=y)
MSE_MAP <- outer(1:SG$d, 1:8, 
     Vectorize(function(dimlcv, lcv1) {
        CGGP_internal_calcMSE(SG$xb[1:SG$sizest[dimlcv]],
        theta=SG$thetaMAP[(dimlcv-1)*SG$numpara+1:SG$numpara],
        CorrMat=SG$CorrMat)
 }))
CGGP_internal_calcMSEde(SG$po[1:SG$poCOUNT, ], MSE_MAP)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.