Description Usage Arguments Examples
Alternative to pls package's 'R2'. While 'R2' requires a 'newdata' dataframe which combines both predictors and target, 'getR2' lets you put in 'newx' and 'newy' separately. Aside from that, declaring 'estimate' in 'getR2' remind you which value you got.
1 2 |
mvr |
mvr object |
ncomp |
number of component |
estimate |
a subset of c("train", "CV", "test") |
newx |
predictors for test group |
newy |
measured value for test group |
showprint |
show result in console |
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.