sqrtmean: Generalized Mean for P=0.5

View source: R/mathTools.R

sqrtmeanR Documentation

Generalized Mean for P=0.5

Description

Compute the square of the mean of the square root of X

Usage

sqrtmean(x, na.rm = FALSE)

Arguments

x

numeric vector of positive values

Details

Implements the generalized mean, for the case of power P=0.5. This average will always fall between the value of the arithmatic mean mean and the value of the geometric mean logmean.

In trying to average the gene rank positions over multiple transcripts or differential expression results, the various averaging tools can give quite different results, depending on the distribution of values. Many functions that produce sorted lists of genes provide a average.FUN argument, so you can control the notion of 'average'.

Value

a numeric scalar


robertdouglasmorrison/DuffyTools documentation built on Sept. 13, 2024, 4:51 p.m.