ch.RSS: A function calculate the residual sum of squares from a model...

View source: R/ch.RSS.r

ch.RSSR Documentation

A function calculate the residual sum of squares from a model fit

Description

This function calculates the residual sum of squares from a model fit. The empirical Y and the fit Y are input. The RSS is output. If one wants to standardize the variables before calculation, then set "standardize" to TRUE.

Usage

ch.RSS(y, fitY, standardize = FALSE)

Arguments

y

A numeric vector containing the empirical Y from the data.

fitY

A numeric vector containing the fit Y from the model.

standardize

A boolean that specifies whether to standardize the scores before calculating the RSS. Standardization is useful if you want to combine different DVs into a single RSS (e.g., RT and accuracy). DEFAULT = FALSE. '

Value

the RSS.

Examples

ch.RSS (myY, fitY)

ccpluncw/ccpl_R_chutils documentation built on Feb. 28, 2024, 1:17 a.m.