betaHat returns the Linear model coefficient, R2
returns the R-squared statistic, and R2pred returns the
predictive R-squared statistic
1 2 3 4 5 |
X |
model matrix |
y |
response vector (or matrix) |
Xt |
training model matrix |
yt |
training response vector |
Xv |
validation model matrix |
yv |
validation response vector |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.