powered by
Evaluate the performance of different regression models
evalreg( dataset, pred, rvar, train = "All", data_filter = "", arr = "", rows = NULL, envir = parent.frame() )
A list of results
Dataset
Predictions or predictors
Response variable
Use data from training ("Training"), test ("Test"), both ("Both"), or all data ("All") to evaluate model evalreg
Expression entered in, e.g., Data > View to filter the dataset in Radiant. The expression should be a string (e.g., "training == 1")
Expression to arrange (sort) the data on (e.g., "color, desc(price)")
Rows to select from the specified dataset
Environment to extract data from
Evaluate different regression models based on predictions. See https://radiant-rstats.github.io/docs/model/evalreg.html for an example in Radiant
summary.evalreg to summarize results
summary.evalreg
plot.evalreg to plot results
plot.evalreg
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