Description Usage Arguments Details Value See Also
These functions implement different cross-validation scenarios for two-step kernel ridge regression. It uses the shortcuts for leave-one-out cross-validation.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
Y |
the matrix with responses |
Hk |
the hat matrix for the first kernel (rows of Y) |
Hg |
the hat matrix for the second kernel (columns of Y) |
pred |
the predictions |
... |
added to allow for specifying pred even when not needed. |
alpha |
a vector of length 4 with the alpha values from a
|
These functions are primarily for internal use and hence not exported. Be careful when using them, as they do not perform any sanity check on the input. It is up to the user to make sure the input makes sense.
a matrix with the leave-one-out predictions
loo
for the user-level function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.