View source: R/mean_squared_error.R
mean_squared_error | R Documentation |
Evaluates the mean square error loss function of a linear regression.
mean_squared_error(beta, X, Y)
beta |
a vector of size dimX, the value at which the loss is computed (i.e. we predict Y using X'beta) |
X |
an array of size n x Tmax x dimX containing the values of the covariates X |
Y |
a matrix of size n x Tmax containing the values of the dependent variable Y |
the value of the mean squared error loss function of the linear regression at beta
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.