Learn R Programming

riskRegression (version 2026.02.13)

Hal9001: Fitting HAL for use with predictRisk

Description

Fit HAL models via a formula and a data set for use with predictRisk.

Usage

Hal9001(formula, data, lambda = NULL, family, ...)

Arguments

formula

A formula.

data

The data on which to fit the model.

lambda

The tuning parameters for HAL. If set to NULL, then it the parameters are chosen for you.

family

Can be one of c("binomial","normal"). If any other value is translated into event history analysis.

...

Additional arguments that are passed on to the hal_fit.