powered by
This function give the probability of loss of given asset returns.
pt.probloss(r,p)
:a vector of periodic returns
:target return
# NOT RUN { rt <- runif(12,-1,1) # generate random number to simulate returns pt.probloss(rt,0) pt.probloss(rt,0.05) # }
Run the code above in your browser using DataLab