pt.udrtn {YRmisc} | R Documentation |
Average up and down returns
Description
This function calculates the average up and down returns from a series of returns.
Usage
pt.udrtn(r)
Arguments
r |
:a vector of periodic returns |
Examples
r <- runif(100,-1,1) # generate random number to simulate returns
pt.udrtn(r)
[Package YRmisc version 0.1.6 Index]