BSkyPredict: Score a dataset using a model

View source: R/predict.r

BSkyPredictR Documentation

Score a dataset using a model

Description

Model scoring does the following 1. Scores the current dataset using the selected prebuilt model. Stores predictions with the specified confidence interval in the current dataset using the specified prefix. 2. Optionally creates a confusion matrix and a ROC curve predict is a generic function for making predictions using the selected model.

Usage

BSkyPredict(
  modelname = "multinom",
  prefix = "multinom",
  confinterval = FALSE,
  level = 0.95,
  datasetname = "Dataset4"
)

Arguments

modelname

a model object for which prediction is desired.

prefix

prefix string that will be used to create new variables containing the predictions.

datasetname

is the current dataset to score and save predictions to.


BlueSkyStatistics/BlueSky documentation built on Jan. 29, 2025, 4:15 p.m.