estimateSNR {sharpeRratio}R Documentation

computes the signal-to-noise ratio

Description

computes the signal-to-noise ratio

Usage

estimateSNR(x, numPerm = NA, nu = NA, quantiles = c(0.05, 0.95))

Arguments

x

A (non-empty) numeric vector of data values.

numPerm

The number of permutations (or shuffling) of the order of the sample values. By default set to min(100,3 log(length(x))).

nu

the Student t-distribution tail exponent of the sample data (if know). By default: NA. If set to NA, the tail exponent of the data is obtained from fit to a Student t-distribution. If NA, nu is estimated.

quantiles

a vector of the lower and upper quantile needed to compute the confidence interval (use only if nu is known).

Value

a list element

Examples

  x <- rt(100,3)/sqrt(3)+0.05  #some Student-t distributed synthetic price log-returns
  estimateSNR(x)    

[Package sharpeRratio version 1.4.3 Index]