Learn R Programming

emil (version 2.2.10)

get_prediction: Extract predictions from modeling results

Description

Extract predictions from modeling results

Usage

get_prediction(result, resample, type = "prediction", format = c("long",
  "wide"))

Arguments

result

Modeling result, as returned by evaluate and evaluate.

resample

Resampling scheme used to create the results.

type

The type of prediction to return. The possible types vary between modeling procedure.

format

Table format of the output. See http://en.wikipedia.org/wiki/Wide_and_narrow_data for more info.

Value

A data frame where the id column refers to the observations.