avgMean: avgMean

Description Usage Arguments Value

View source: R/R_RFNode.R

Description

A default function to average the observations in each tree leaf by taking the mean of the outcomes.

Usage

1
avgMean(x, y, y_sd = NULL)

Arguments

x

A dataframe of observations in the current tree leaf

y

A vector of outcomes in the current tree leaf

y_sd

A vector of standard deviations corresponding to the outcomes

Value

The averaging metrics of the data


theo-s/Rforestry_R documentation built on Dec. 23, 2021, 9:55 a.m.