calculate_SSE_for_matrices: Calculate the Sum of Squared Errors of two matrices

Description Usage Arguments Value Examples

View source: R/calculate_SSE_for_matrices.R

Description

Calculates the Sum of Squared Errors of the two given matrices. If the matrices do not have the same number of columns, the larger one is subsetted from the first column onward to yield a matrix of equal dimensions. This means that not all columns may be incorporated in the calculation.

Usage

1

Arguments

X1

A matrix of m-by-n

X2

A matrix of m-by-p

Value

The sum of squared errors (the difference) of the two matrices.

Examples

1

GeertPostma/pathmodelr documentation built on Oct. 5, 2021, 4:17 p.m.