ezLogmeanNorm: Scales columns of a matrix to logarithmic mean

View source: R/util.R

ezLogmeanNormR Documentation

Scales columns of a matrix to logarithmic mean

Description

Columns of the matrix will be scaled to an overall logarithmic mean or to a defined target.

Usage

ezLogmeanNorm(x, use = NULL, target = NULL, presentFlag = NULL)

ezLogmeanScalingFactor(x, use = NULL, target = NULL, presentFlag = NULL)

Arguments

x

the matrix to scale.

use

a logical vector defining which rows to use.

target

a value or vector defining the means by which columns should be scaled. The default will use the overall logarithmic mean of the matrix for each column.

presentFlag

a binary matrix with the same size as x which indicates if a values is considered as measured correctly.

Value

Returns a matrix with columns normalized to a logarithmic mean/means.

Functions

  • ezLogmeanScalingFactor: Calculates the scaling factor for the main function.

Author(s)

Rehrauer, Hubert

Schmid, Peter

Examples

m1 = matrix(1:20,5)
m2 = ezLogmeanNorm(m1)
m3 = ezLogmeanNorm(m1,target=10)
m4 = ezLogmeanNorm(m1,use=c(TRUE,FALSE))

uzh/ezRun documentation built on Dec. 26, 2024, 9:53 a.m.