mscale: Calculate modified row z-scores

View source: R/misc.R

mscaleR Documentation

Calculate modified row z-scores

Description

Row centered by median and scaled by median absolute deviation

Usage

mscale(x, center = TRUE, scale = TRUE, censor = NULL, useMad = FALSE)

Arguments

x

The input matrix or datafram

center

Centered by median

scale

Scaled by SD (or 1.4826*MAD)

censor

Whether to censor the scaled value. If a positive integer value, the upper limit will be this value and the lower limit will be the negative value.

useMad

Whether use row z score or modified z score (useMad = TRUE)


lujunyan1118/jyluMisc documentation built on March 8, 2024, 12:17 a.m.