predict.r4vn_tabscore: Predict scores and risk from an R4VN scorecard

predict.r4vn_tabscoreR Documentation

Predict scores and risk from an R4VN scorecard

Description

Predict scores and risk from an R4VN scorecard

Usage

## S3 method for class 'r4vn_tabscore'
predict(
  object,
  newdata,
  type = c("all", "score", "risk", "group", "model", "model_lp", "model_score"),
  times = NULL,
  ...
)

Arguments

object

A r4vn_tabscore object.

newdata

New data containing all final scorecard predictors.

type

Output type: all, score, risk, group, model, model_lp, or model_score. model returns original-model response prediction for logistic/Poisson and linear predictor for Cox. model_lp always returns the original-model linear predictor.

times

Cox prediction horizon(s). Defaults to the horizons stored in the scorecard.

...

Reserved.

Value

A numeric vector, matrix, or data frame depending on type.


R4VN documentation built on Sept. 30, 2026, 5:13 p.m.