pt.btavg: Batting average

Description Usage Arguments Examples

View source: R/pt.btavg.R

Description

The batting average of the asset is the ratio between the number of periods where the asset outperforms a benchmark and the total number of periods.

Usage

1

Arguments

ar

:a vector of a risk asset return

br

:a vector of a benchmark return

Examples

1
2
3
artn <- runif(100,-1,1)
brtn <- runif(100,-1,1)
pt.btavg(artn,brtn)

YRmisc documentation built on March 25, 2020, 5:13 p.m.

Related to pt.btavg in YRmisc...