Learn R Programming

BaTFLED3D (version 0.2.11)

exp_var: Get the explained variance for a set of predictions

Description

Calculates 1-var(obs-pred)/var(obs). If verbose == TRUE the result is printed.

Usage

exp_var(obs, pred, verbose = F)

Arguments

obs

data.frame, vector or matrix

pred

data.frame, vector or matrix

verbose

logical indicating whether to print result

Value

numeric value of the explained variance

Examples

Run this code
# NOT RUN {
exp_var(rnorm(100) + seq(0,9.9,.1),  seq(0,9.9,.1))

# }

Run the code above in your browser using DataLab