exp_var: Get the explained variance for a set of predictions

Description Usage Arguments Value Examples

View source: R/exp_var.R

Description

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

Usage

1
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

1
exp_var(rnorm(100) + seq(0,9.9,.1),  seq(0,9.9,.1))

BaTFLED3D documentation built on May 2, 2019, 2:38 p.m.