Learn R Programming

SEQTaRget (version 1.3.4)

inline.pred: Helper Function to inline predict a fastglm object

Description

Helper Function to inline predict a fastglm object

Usage

inline.pred(
  model,
  newdata,
  params,
  type,
  case = "default",
  multi = FALSE,
  target = NULL,
  cache = NULL
)

Arguments

model

a fastglm object

newdata

filler for a .SD from data.table

params

parameter from SEQuential

type

type of prediction

case

case type: "default", "LTFU", "visit", "surv"

multi

multinomial flag

target

target level for multinomial

cache

optional formula cache from init_formula_cache