pt.probloss {YRmisc} | R Documentation |
This function give the probability of loss of given asset returns.
pt.probloss(r,p)
r |
:a vector of periodic returns |
p |
:target return |
rt <- runif(12,-1,1) # generate random number to simulate returns
pt.probloss(rt,0)
pt.probloss(rt,0.05)