rtn.stats: rtn.stats

Description Usage Arguments Value Author(s) See Also Examples

View source: R/pub01_utilityFuncs.R

Description

Returns a basic set of statistics of the rtn series. It's a wraped function of table.Stats in package PerformanceAnalytics adding by the hitRatio.

Usage

1
rtn.stats(rtn, hitSatisfied = 0)

Arguments

rtn

an xts, vector, matrix, data frame, timeSeries or zoo object of asset returns

hitSatisfied

a numeric, indicating how much return could be called a "hit".See hitRatio for detail.

Value

a matrix

Author(s)

Ruifei.Yin

See Also

table.Stats

Examples

1
2
3
4
rtn.long <- zoo(rnorm(100,0.001,0.02),as.Date("2010-01-01")+1:100)
rtn.short <- rtn.long + rnorm(100,-0.001,0.003)
rtn <- merge(rtn.long,rtn.short)
rtn.stats(rtn)

raphael210/QUtility documentation built on May 26, 2019, 11:05 p.m.