Learn R Programming

radiant.model (version 1.4.3)

evalreg: Evaluate the performance of different regression models

Description

Evaluate the performance of different regression models

Usage

evalreg(
  dataset,
  pred,
  rvar,
  train = "All",
  data_filter = "",
  envir = parent.frame()
)

Arguments

dataset

Dataset

pred

Predictions or predictors

rvar

Response variable

train

Use data from training ("Training"), test ("Test"), both ("Both"), or all data ("All") to evaluate model evalreg

data_filter

Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "training == 1")

envir

Environment to extract data from

Value

A list of results

Details

Evaluate different regression models based on predictions. See https://radiant-rstats.github.io/docs/model/evalreg.html for an example in Radiant

See Also

summary.evalreg to summarize results

plot.evalreg to plot results

Examples

Run this code
# NOT RUN {
data.frame(price = diamonds$price, pred1 = rnorm(3000), pred2 = diamonds$price) %>%
  evalreg(pred = c("pred1", "pred2"), "price") %>%
  str()

# }

Run the code above in your browser using DataLab