Home   >   User Resources   >   Online Help   >   apaSplitFactors
 

 

Function index Version 3.0.0

apaSplitFactors(Dates, SplitList, nStocks)

Excel=apaSplitFactors(Dates, SplitList, nStocks)

Result

Creates an r x nStocks table of stock split conversion factors, one row per date and one column per stock ID. Multiply a matrix of historical prices with the table to obtain split-adjusted prices.

Syntax

Dates: r x 1 date vector

SplitList: r x 3 table with stock splits. First column contains ex-split date, second column the stock ID, third column the split factor.

nStocks: maximum stock ID. Equals the maximum number of stocks in the universe.

Algorithm

All factors are initialized with 1, i.e. no adjustment.

Remarks

Stock IDs in SplitList must be integers between 1 and nStocks. Column j of the result corresponds to stock ID j.