evaluation.adjr2: Adjusted R2 evaluation of regression predictions

evaluation.adjr2R Documentation

Adjusted R2 evaluation of regression predictions

Description

Evaluation predictions of a regression model according to R2

Usage

evaluation.adjr2(predictions, gt, nrow = length(predictions), ncol, ...)

Arguments

predictions

The predictions of a regression model (vector).

gt

The ground truth (vector).

nrow

Number of observations.

ncol

Number of variables

...

Other parameters.

Value

The evaluation of the predictions (numeric value).

See Also

evaluation.msep, evaluation

Examples

require (datasets)
data (trees)
d = splitdata (trees, 3)
model.linreg = LINREG (d$train.x, d$train.y)
pred.linreg = predict (model.linreg, d$test.x)
evaluation.r2 (pred.linreg, d$test.y)

fdm2id documentation built on July 9, 2023, 6:05 p.m.