extract_proximity: Extract proximity matrix for a MetaForest object.

Description Usage Arguments Value Examples

View source: R/extract_proximity.MetaForest.R

Description

Extract proximity matrix for a MetaForest object.

Usage

1
extract_proximity(fit, newdata)

Arguments

fit

object of class \'MetaForest\'.

newdata

new data with the same columns as the data used for fit

Value

an n x n matrix where position i, j gives the proportion of times observation i and j are in the same terminal node across all trees.

Examples

1

Example output

Loading required package: ggplot2
Loading required package: metafor
Loading required package: Matrix
Loading 'metafor' package (version 2.4-0). For an overview 
and introduction to the package please type: help(metafor).
Loading required package: ranger
Loading required package: data.table

metaforest documentation built on Jan. 8, 2020, 9:06 a.m.