Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

sscore (version 1.44.0)

trimMean: Compute trimmed mean for a vector

Description

Computes the trimmed mean for a vector. Note that this implementation follows the Affymetrix code, which gives different results than the standard R function mean().

Usage

trimMean(vec, p1, p2)

Arguments

vec
vector of values
p1
lower percentage for trimming
p2
upper percentage for trimming

Value

A numeric value

Details

The details can be found in the given reference.

References

Affymetrix (2002) Statistical Algorithms Description Document, Affymetrix Inc., Santa Clara, CA, whitepaper. http://www.affymetrix.com/support/technical/whitepapers/sadd_whitepaper.pdf