Description Usage Arguments Examples
This function give the probability of loss of given asset returns.
1 | pt.probloss(r,p)
|
r |
:a vector of periodic returns |
p |
:target return |
1 2 3 | rt <- runif(12,-1,1) # generate random number to simulate returns
pt.probloss(rt,0)
pt.probloss(rt,0.05)
|
[1] 0.5
[1] 0.5833333
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.