Skip to content
Prev 310386 / 398506 Next

TreynorRatio

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
Message-ID: <CAAmySGO0tv8yWqPD+3O4BWdsAtr=KRxfq3TsqbrvKNE6mSsDJw@mail.gmail.com>
In-Reply-To: <CALJA7R6Biq+9AEqre6kMN+AJCgxC+2DggH5guVd4Yu=5y+3AOw@mail.gmail.com>