score_new_data: Model Deployment: Score the new data based on the model.

score_new_dataR Documentation

Model Deployment: Score the new data based on the model.

Description

Based on the models built, score a new data. Probability will be calculated as the model scores.

Usage

score_new_data(model = model, newdata = newdata, ID = ID, file = file)

Arguments

model

The model generated by lrm_model.

newdata

A new data to be scored

ID

The ID variable in the data.

file

The file name to save the model probabilities and the segments.

Value

.

Examples


model.score <- score_new_data(model = model.final, newdata = newdata, ID = "BOOK_ID", file = "modelscores.xlsx") 


yangx227/SimmonsResearchR documentation built on April 24, 2022, 6:44 a.m.