Learn R Programming

PCRA (version 1.2)

turnOver: Portfolio Turnover

Description

Calculates T-1 turn-over values for a times of portfolio weight vectors from time t = 1 to time t = T, where the turnover from time t-1 to time t is the sum of the absolute differences between the portfolio weights at time t-1 and time t.

Usage

turnOver(weights)

Value

A zoo time series object containing T-1 turnover values

Arguments

weights

A multivariate xts object of portfolio weights

Examples

Run this code
args(turnOver)

Run the code above in your browser using DataLab