meancorrect: mean-correct a data matrix

Description Usage Arguments Value Author(s) Examples

Description

Given a numeric matrix, subtracts the grand means to set the grand mean for each variable to zero

Usage

1

Arguments

x

a numeric matrix or all-numeric data frame

Value

A matrix with the grand means of the columns removed

Author(s)

Ben Bolker

Examples

1
2
  X = matrix(1:30,ncol=3)
  meancorrect(X)

bbolker/cpcbp documentation built on May 11, 2019, 9:28 p.m.