mean_squared_error: Evaluates the mean square error loss function of a linear...

View source: R/mean_squared_error.R

mean_squared_errorR Documentation

Evaluates the mean square error loss function of a linear regression.

Description

Evaluates the mean square error loss function of a linear regression.

Usage

mean_squared_error(beta, X, Y)

Arguments

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

Value

the value of the mean squared error loss function of the linear regression at beta


cgaillac/MarginalFElogit documentation built on Dec. 24, 2024, 3:23 p.m.