loss.gr.squared.error: Squared error Loss Function Gradient
Description
This function implements the squared error loss gradient with respect to
y.hat used for linear regression in the form required by
EmpiricalRiskMinimizationDP.KST.
Usage
loss.gr.squared.error(y.hat, y)
Value
Vector or matrix of the squared error loss gradient for each element
of y.hat and y.