Learn R Programming

SCE (version 1.0.0)

OOB_validation: Calculate Out-of-Bag (OOB) Validation Predictions

Description

This function calculates the out-of-bag (OOB) validation predictions for an SCE model. OOB predictions are made using only the trees that did not use a particular observation during training, providing an unbiased estimate of the model's performance.

Usage

OOB_validation(model)

Value

A data.frame containing the OOB predictions for each predictant. The number of rows equals the number of training samples, and the columns correspond to the predictant variables.

Arguments

model

A trained SCE model object generated through the SCE function. The model must contain OOB information in its Tree_Info component.

Author

Kailong Li <lkl98509509@gmail.com>

Details

The OOB validation process involves:

  1. Extracting OOB indices and predictions from each tree

  2. Weighting the predictions based on tree weights

  3. Calculating weighted means for each sample

This function is typically called internally by Model_simulation and is not usually called directly by users.

See Also

SCE