print.rhf: Print Output from a Random Hazard Forest Analysis

View source: R/print.rhf.R

print.rhfR Documentation

Print Output from a Random Hazard Forest Analysis

Description

Print a compact summary of a Random Hazard Forest analysis. This is the default print method for objects produced by grow or predict.

Usage

## S3 method for class 'rhf'
print(x, digits = 3, label.width = 34, ...)

Arguments

x

An object of class rhf created by grow or predict. When predict is called without new data (“restore mode”), the original forest and its OOB risk are returned.

digits

Number of digits used for printed numeric summaries.

label.width

Width used to right-justify labels in the printed output.

...

Additional arguments (currently unused).

Details

The printed summary includes basic sample information, forest size characteristics, event counts when available, and risk metrics (in-bag, OOB, or test risk depending on how the object was created).

Value

Returns the object x invisibly.

Author(s)

Hemant Ishwaran and Udaya B. Kogalur


randomForestRHF documentation built on April 24, 2026, 1:07 a.m.