calculateAMDMS: Forest Averaged Minimal Depth of a Maximal Subtree (AMDMS)

Description Usage Arguments Value

View source: R/tree_traversal_util.R

Description

Given a result from the Ranger package (write.forest must be set to TRUE), this function will traverse the trees and calculate the first and second order average minimal depth of a maximal subtree.

Usage

1
calculateAMDMS(ranger_obj)

Arguments

ranger_obj

A ranger object from the ranger package, which was created with param write.forest set to TRUE. In other words, it must have a 'forest' property.

Value

A data.frame with two columns: averaged first and second order minimal depth of a maximal subtree.


climbeR documentation built on May 2, 2019, 3:37 p.m.