center: Center

Description Usage Arguments Details Value

Description

Center a matrix

Usage

1
center(x)

Arguments

x

matrix

Details

This function is used primarily to center a time series of asset returns or factors. Each column should represent the returns of an asset or factor realizations. The expected value is taken as the sample mean.

x.centered = x - mean(x)

Value

matrix of centered data


PortfolioAnalytics documentation built on May 1, 2019, 10:56 p.m.