weightedavgMean: weightedavgMean

Description Usage Arguments Value

View source: 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


soerenkuenzel/hte documentation built on June 12, 2018, 4:26 p.m.