R2: R-squared

Description Usage Arguments Value Author(s) Examples

View source: R/Percentile_Analysis_Functions_v2.R

Description

Simple measure of R-squared

Usage

1
R2(x, y)

Arguments

x

a vector of real numbers

y

a vector of real numbers; must be the same length as x

Value

R2 output is a number between 0 and 1

Author(s)

Joseph G. Kreke, PhD

Examples

1
2
3
 x=c(1,2,3,4,5,6)
 y=c(1.2, 2.1, 2.9, 3.9, 5.3, 6.0)
 r2 <- R2(x,y)

pAnalysis documentation built on May 2, 2019, 9:17 a.m.