getMinLmR2: Function that calculates a linear model and returns (1 -...

View source: R/getMinLmR2.r

getMinLmR2R Documentation

Function that calculates a linear model and returns (1 - r-square)

Description

This function calculates a linear model and returns (1 - r-square).

Usage

getMinLmR2(x, y)

Arguments

x

a vector of numbers that is the predictor variable for a linear model.

y

a vector of numbers that the outcome variable for a linear model.

Value

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

Examples

min.lm.r2 (x, y)

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