weightedavgMean: weightedavgMean

Description Usage Arguments Value

View source: R/R_RFNode.R

Description

A default function to average the observations in each tree leaf by taking a weighted mean according with minimal variance.

Usage

1
weightedavgMean(x, y, y_sd)

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. The ith position contains the standard deviation of Y_i

Value

The weighted averaging of Y


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