margin.scale: 'margin.scale'

Description Usage Arguments Value

Description

Compute standardization/normalization for rows or columns of a matrix.

Usage

1
2
margin.scale(X, type = NULL, center = F, scale = F, margin = 2,
  keep.original.attributes = F)

Arguments

X

a matrix for input

type

the type of scaling to perform. Options: "rp" (row profile) which is item divided by row sums, "hellinger" which is sqrt of "rp", "z" which is the same as scale(x), and "ss1" which is sum of squares 1. Also available is "scale" and requires use of center and scale parameters

center

the intended center (see scale)

scale

the intended scale (see scale)

margin

which margin to perform this on (i.e., 1 for rows and 2 for columns)

Value

column or row normalized version of the matrix.


derekbeaton/ExPosition2 documentation built on May 10, 2019, 8:25 a.m.