Skip to contents

Prediction component for expected profit models (EPMs). This function is called in model_prediction, which is called within run_policy.

Usage

epm_predict(
  project,
  mod.name,
  mod.type,
  use.scalers = FALSE,
  scaler.func = NULL,
  outsample = FALSE,
  outsample.mod.name = NULL
)

Arguments

project

Name of project

mod.name

Name of saved model to use

mod.type

String. Options are weibull, lognormal, normal

use.scalers

Input for create_model_input. Logical, should data be normalized? Defaults to FALSE. Rescaling factors are the mean of the numeric vector unless specified with scaler.func.

scaler.func

Input for create_model_input. Function to calculate rescaling factors.

outsample

Logical, FALSE if predicting probabilities for main data, and TRUE if predicting for out-of-sample data. outsample = FALSE is the default setting.

Value

Returns probability of epm model by choice