cen: Centering matrix

Description Usage Arguments Details Value Examples

View source: R/cen.R

Description

Constructs a centering matrix of dimension d by d.

Usage

1
cen(d)

Arguments

d

integer giving the dimension of the matrix.

Details

Using the centering matrix to center a matrix is not computationally efficient.

Value

A numeric matrix of dimension d by d.

Examples

1
2
3
4
5
cen(1)
cen(2)
cen(3L)
cen(5)
cen(0) # Degenerate case works too

AEBilgrau/correlateR documentation built on Nov. 15, 2019, 9:21 a.m.