Learn R Programming

mcen (version 1.2.1)

squared_error: Calculates sum of squared error between two vectors or matrices

Description

Calculates sum of squared error between two vectors or matrices

Usage

squared_error(pred, test_y)

Value

returns the sum of the squared differences between pred and test_y

Arguments

pred

the predictions

test_y

the testing response values

Author

Ben Sherwood <ben.sherwood@ku.edu>, Brad Price <brad.price@mail.wvu.edu>