regression_result: Create a Regression Result Object

View source: R/mvpa_result.R

regression_resultR Documentation

Create a Regression Result Object

Description

This function creates a regression result object containing the observed and predicted values, test design, test indices, and predictor.

Usage

regression_result(
  observed,
  predicted,
  testind = NULL,
  test_design = NULL,
  predictor = NULL
)

Arguments

observed

A vector of observed values.

predicted

A vector of predicted values.

testind

A vector of indices for the test data (optional).

test_design

The test design (optional).

predictor

The predictor used in the regression model (optional).

Value

A list with class attributes "regression_result", "classification_result", and "list" containing the observed and predicted values, test design, test indices, and predictor.

See Also

Other classification_result: binary_classification_result(), classification_result(), multiway_classification_result()


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