Skip to content
Prev 9485 / 15274 Next

CAPM homework (was RE: assistance please)

On Thu, 2012-02-09 at 06:30 +0000, Baranzan Alhamdu Vayin wrote:
It's not polite to hit 'reply' to a digest post.  If your email reader
can't handle digests correctly (as Microsoft Outlook and many others
cannot), then change your list preferences to receive individual emails,
and use your mail client's filter capabilities to move posts from this
list into a folder.

This looks shockingly like a homework question, so I'm not going to give
you the answers, only a bit of direction.
install.packages(quantmod)
install.packages(PerformanceAnalytics)
require(quantmod)
require(PerformanceAnalytics)
?getSymbols
?Return.calculate
?CAPM.utils
?chart.RollingRegression

In the future, please follow the posting guide[1] and esr[2] and *try*
first.  Search on rseek.org, which would likely have found all the
functions described above.  Try some things.  *Then* post on r-help or
here (depending on whether your question is general to R or specific to
finance, respectively) showing what you've already tried, and being
specific about where you are having difficulty.

Regards,

    - Brian

Ref: 
[1] http://www.r-project.org/posting-guide.html
[2] http://catb.org/esr/faqs/smart-questions.html