getrtn.LBH: getrtn.LBH

Description Usage Arguments Value Author(s) See Also Examples

Description

get the rtn.LBH object from the TSF object.

Usage

1
2
getrtn.LBH(PB.L, bmk = "EI000300", hedge.rebFreq = "month",
  hedge.posi = 1, fee.long = 0, fee.short = 0, date_start_pad)

Arguments

PB.L

a PB object of the long portfolio

bmk

a character string,giving the stockID of the benchmark index,eg. "EI000300".

hedge.rebFreq

giving the rebalance freq when computing the hedged rtn.An interval specification, one of "day", "week", "month", "quarter" and "year", optionally preceded by an integer and a space, or followed by "s".See cut.Date for detail.

hedge.posi

a numeric, giving the position of the hedging assets

fee.long

a numeric, giving the fee of long asset

fee.short

a numeric, giving the fee of short asset

Value

a rtn.LBH object of class xts,giving the return series of long,bmk and hedge, with the attr of 'turnover'(a xts series) and 'fee'(a vector).

Author(s)

Ruifei.Yin

See Also

Other LSH-frame building functions: addrtn.hedge, getrtn.LSH, getrtn.bmk

Examples

1
re <- getrtn.LBH(PB.L,"EI000300")

raphael210/RFactorModel documentation built on May 26, 2019, 11:06 p.m.