center: Center

View source: R/stat.factor.model.R

centerR Documentation

Center

Description

Center a matrix

Usage

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


braverock/PortfolioAnalytics documentation built on Jan. 17, 2025, 2:39 a.m.