Learn R Programming

spartan (version 3.0.2)

rSquared: Calculate the R squared statistic for predictions and observed data

Description

Calculate the R squared statistic for predictions and observed data

Usage

rSquared(model_predictions, observed_data)

Arguments

model_predictions

Predicted dataset

observed_data

Observed dataset (testing or validation)

Value

R squared statistic for the two sets