ch.TSS: A function calculate the total sum of squares from a vector

View source: R/ch.TSS.r

ch.TSSR Documentation

A function calculate the total sum of squares from a vector

Description

This function calculates the total sum of squares from a vector. The empirical Y is input. The TSS is output. If one wants to standardize the variable before calculation, then set "standardize" to TRUE.

Usage

ch.TSS(y, standardize = FALSE)

Arguments

y

A numeric vector containing the empirical Y from the data.

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 TSS.

Examples

ch.TSS (myY)

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