Learn R Programming

hapsim (version 0.31)

sumsqscale: Scales a matrix

Description

Scales the columns of a matrix so that the squared elements sum to unity

Usage

sumsqscale(mat)

Arguments

mat

A matrix

Value

The scaled matrix.