View source: R/random_effect_learner.R
makeRandomEffectLearner | R Documentation |
Creates a random effect learner object to be used in veb_boost
makeRandomEffectLearner(
R,
R_test = NULL,
growMode = c("NA", "+*", "+", "*"),
changeToConstant = FALSE
)
R |
is a positive semi-definite matrix (e.g. correlation matrix) to be used as the predictors in training. R must contain an attribute called
|
R_test |
is a positive semi-definite matrix (e.g. correlation matrix) to be used as the predictors in training. R must contain an attribute called
|
growMode |
is a string for if the learner should be grown (or not)
If |
changeToConstant |
is a logical for if constant fits should be changed to be constant |
A random effect learner \alpha
has a prior distribution
\alpha ~ N(0, \sigma_{\alpha}^2 R)
for a fixed and given R
.
In order to deal with a rank-deficient matrix R
(say with rank k < n
), we let
z ~ N(0, \sigma_{\alpha}^2 I_k)
and let
\alpha := US^{1/2}z
where R = USU^T
is the singular/Eigen value decomposition of R
(in compact form).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.