rsq: Squared coefficient of correlation (R2)

rsqR Documentation

Squared coefficient of correlation (R2)

Description

Squared coefficient of correlation (R2)

Usage

rsq(x, y)

Arguments

x

variable x

y

variable y

Value

Squared coefficient of correlation (R2) or coefficient of determination.

Examples

rsq(runif(10), runif(10))

byzheng/myutils documentation built on Oct. 3, 2024, 1:35 a.m.