pt.probloss: Probability of loss

Description Usage Arguments Examples

View source: R/pt.probloss.R

Description

This function give the probability of loss of given asset returns.

Usage

1

Arguments

r

:a vector of periodic returns

p

:target return

Examples

1
2
3
rt <- runif(12,-1,1) # generate random number to simulate returns
pt.probloss(rt,0)
pt.probloss(rt,0.05)

Example output

[1] 0.5
[1] 0.5833333

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

Related to pt.probloss in YRmisc...