get_predict: Get Predictions and Errors

View source: R/get_predict.R

get_predictR Documentation

Get Predictions and Errors

Description

This function generates predictions from a model and calculates the errors between actual and predicted values, resulting in a dataframe containing the predicted values, actual values, and the residuals.

Usage

get_predict(modelo, datos, real, n = NULL)

Arguments

modelo

Fitted model object

datos

Data frame containing predictor variables.

real

Vector of actual response values.

n

Number of digits to round the columns. Default

Value

A data frame containing actual, predicted, and error values.


RegAssure documentation built on Sept. 8, 2023, 5:36 p.m.