Skip to content

TreynorRatio

1 message · R. Michael Weylandt

#
On Fri, Nov 9, 2012 at 8:35 AM, sheen maria <sheenmaria6 at gmail.com> wrote:
Please keep your replies on list.

You choose the benchmark -- no one else can. For most asset classes,
there are well-defined standards, but ultimately it's the analyst's
job.

To calculate returns, you can use the Return.calculate() function as
you did below.

Note however that you're misusing getSymbols. This would be better

getSymbols("SPY")
r = Return.calculate(SPY)

or this

g = getSymbols("SPY", auto.assign = FALSE)
r = Return.calculate(g)

Michael