generalized_mean: Generalized mean

Description Usage Arguments Details Value See Also

View source: R/utilities.R

Description

Create a function to calculate a generalized mean.

Usage

1

Arguments

p

Exponent of the generalized mean.

Details

Returns a function to calculate the generalized mean with exponent p (i.e., the weighted mean of x to the power of p, all raised to the power of 1/p). The return value is a function of weighted.mean, unless p = -Inf or p = Inf, in which case it is a function of min/max.

Value

A function.

See Also

See geomean.


marberts/ppd documentation built on March 27, 2020, 7:21 p.m.