sum_square: Compute the Sum of Squares

View source: R/operations.R

sum_squareR Documentation

Compute the Sum of Squares

Description

Compute the Sum of Squares

Usage

sum_square(x, y = mean(x))

Arguments

x

Numeric vector

y

Numeric scalar vector of the same length as x. Defaults to the mean of x.

Details

This function computes the sum of squared differences between x and y

Value

Sum of squares of the deviation vector.


ryan-heslin/RegLesson documentation built on Aug. 5, 2022, 9:03 p.m.