get_predict {RegAssure}R 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.


[Package RegAssure version 1.0.0 Index]