\HeaderA{table.CaptureRatios}{Calculate and display a table of capture ratio and related statistics}{table.CaptureRatios}
\aliasA{table.UpDownRatios}{table.CaptureRatios}{table.UpDownRatios}
\keyword{ts}{table.CaptureRatios}
\keyword{multivariate}{table.CaptureRatios}
\keyword{distribution}{table.CaptureRatios}
\keyword{models}{table.CaptureRatios}
\begin{Description}\relax
Creates a table of capture ratios and similar metrics for a set of returns against a benchmark.
\end{Description}
\begin{Usage}
\begin{verbatim}
table.CaptureRatios(Ra, Rb, digits = 4)
table.UpDownRatios(Ra, Rb, digits = 4)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{Ra}] a vector of returns to test, e.g., the asset to be examined 
\item[\code{Rb}] a matrix, data.frame, or timeSeries of benchmark(s) to test the asset against. 
\item[\code{digits}] number of digits to round results to for presentation 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
This table will show statistics pertaining to an asset against a set of benchmarks, or statistics for a set of assets against a benchmark.  \code{table.CaptureRatios} shows only the capture ratio; \code{table.UpDownRatios} shows three: the capture ratio, the number ratio, and the percentage ratio.
\end{Details}
\begin{Value}
A data.table of calculations for each set of returns against each benchmark.
\end{Value}
\begin{Author}\relax
Peter Carl
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{UpDownRatios}{UpDownRatios}}, \code{\LinkA{chart.CaptureRatios}{chart.CaptureRatios}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
data(managers)
table.CaptureRatios(managers[,1:6], managers[,7,drop=FALSE])
table.UpDownRatios(managers[,1:6], managers[,7,drop=FALSE])
\end{ExampleCode}
\end{Examples}

