performance.regression_result: Calculate Performance Metrics for Regression Result

View source: R/performance.R

performance.regression_resultR Documentation

Calculate Performance Metrics for Regression Result

Description

This function calculates performance metrics for a regression result object, including R-squared, Root Mean Squared Error (RMSE), and Spearman correlation.

Usage

## S3 method for class 'regression_result'
performance(x, split_list, ...)

Arguments

x

A regression_result object.

split_list

Split results by indexed sub-groups (not supported for regression analyses yet).

...

extra args (not used).

Details

The function calculates the following performance metrics for the given regression result object: - R-squared: proportion of variance in the observed data that is predictable from the fitted model. - RMSE: root mean squared error, a measure of the differences between predicted and observed values. - Spearman correlation: a measure of the monotonic relationship between predicted and observed values.

Value

A named vector with the calculated performance metrics: R-squared, RMSE, and Spearman correlation.

See Also

regression_result


bbuchsbaum/rMVPA documentation built on April 28, 2024, 6:30 a.m.