Learn R Programming

gofMC (version 1.1.2)

R2: R-squared

Description

Calculates R-squared given vectors for x and y

Usage

R2(x1, y1)

Arguments

x1
a vector or matrix of real numbers
y1
a vector or matrix of real numbers

Value

a vector of numbers with length equal to the number of trials (N)

Examples

Run this code
R2(c(1,2,3,4,5),c(1,2,3,4,4))
R2(matrix(runif(10000),ncol=5),matrix(runif(10000),ncol=5))

Run the code above in your browser using DataLab