regressionStatistics: Regression statistics

Description Usage Arguments

Description

betaHat returns the Linear model coefficient, R2 returns the R-squared statistic, and R2pred returns the predictive R-squared statistic

Usage

1
2
3
4
5
betaHat(X, y)

R2(X, y)

R2pred(Xt, yt, Xv, yv)

Arguments

X

model matrix

y

response vector (or matrix)

Xt

training model matrix

yt

training response vector

Xv

validation model matrix

yv

validation response vector


stevencarlislewalker/bootR2 documentation built on May 30, 2019, 4:42 p.m.