getMinR2: Function that calculates (1 - r-square)

View source: R/getMinR2.r

getMinR2R Documentation

Function that calculates (1 - r-square)

Description

This function calculates (1 - r-square) for a set of predicted values (predY) relative to actual empirical values (y).

Usage

getMinR2(predY, y, standardize = FALSE)

Arguments

predY

a vector of numbers that is the fitted data generated from a model.

y

a vector of numbers that were fitted by a model to produce predY.

standardize

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

Value

(1-r2) this is used as the value to be minimized by an optimization program

Examples

getMinR2 (fittedY, y)

ccpluncw/ccpl_R_RRW documentation built on July 4, 2025, 3:24 p.m.