Rsquared {tslars} | R Documentation |
Function that returns an Rsquared of a linear OLS regression without intercept.
Rsquared(x, y)
x |
the matrix of predictors |
y |
the vector of the response |
The $R^2$ of regression y on x.
Sarah Gelper
y <- rnorm(100) x <- matrix(rnorm(300),ncol=3) Rsq <- Rsquared(x,y)