R2: BMI585 final project: R^2 measure for the regression model

Description Usage Arguments Value Examples

View source: R/R2.R

Description

This functions accept two numerical arrays

Usage

1
R2(y, y_d)

Arguments

y:

the numerical array for the ground truth

y_d:

the numerical array for the regression

Value

R_s: the R^2 measure

Examples

1
2
3
y <- c(1,1,1)
y_d <- c(1,1,0.5)
R2(y,y_d)

shaoyanpan/BMI585final2 documentation built on Dec. 23, 2021, 1:20 a.m.