sum_of_squares: Sum of Squares and Sum of Products

Description Usage Arguments Value Author(s) Examples

Description

Calculate the sum of squares (sum_of_squares) or sum of products (sum_of_products) of a numeric vector or pair of numeric vectors

Usage

1
2
3

Arguments

x

a vector of numeric values

y

a vector of numeric values

Value

a numeric value

Author(s)

Kevin M. Middleton (kmm@csusb.edu)

Examples

1
2
3
4
5
6
set.seed(4)
x <- rnorm(10)
sum_of_squares(x)

y <- rnorm(10)
sum_of_products(x, y)

abd documentation built on May 2, 2019, 4:46 p.m.