reduce_pca: Reducing using the first principal component for...

Description Usage Arguments Value

Description

If mat is a matrix with no columns, the all 0-vector is returned. Be warned that the first principal component is not unique, as the negative of the returned value is also a valid first principal component. We use the first principal component decided upon by stat::princomp.

Usage

1

Arguments

mat

The matrix where each column represents a time series with nrow(mat) values.

Value

A vector with nrow(mat) values


cdgreenidge/brcbase documentation built on May 13, 2019, 2:40 p.m.