Skip to content

looking for functions that can test/estimate CAMPM, APT, Fama's factor model, etc.

4 messages · Brian G. Peterson, Michael

#
On Sunday 12 November 2006 22:41, Michael wrote:
Look at at the 'portfolio' and 'RMetrics' packages.  RMetrics is actually 
a group of packages, not just a single module.  These should give you 
CAPM and more.

I can also recommend this excellent introductory book:
http://www.amazon.com/Statistics-Finance-Introduction-David-Ruppert/dp/0387202706
Statistics and Finance: An Introduction by David Ruppert

with R examples available here:
http://www.stat.tamu.edu/~ljin/Finance/stat689-R.htm

Once you've worked on this for a while, if you need pointers on a specific 
problem, this list may be able to be of greater assistance.

Regards,

   - Brian
#
On Monday 13 November 2006 12:13, Michael wrote:
Here's a great thread from this list last year about the Fama three-factor 
model:
http://blog.gmane.org/gmane.comp.lang.r.r-metrics/month=20050901

There is a ton of functionality in R for factor modeling, spread through 
lots of different packages.  I'd suggest that you do some searching on 
Primary Factor Analysis or Primary Component Analysis.

The best bet is to use the Value/Growth categorizations done by an 
external body, such as Reuters, Bloomberg, or S&P.  There doesn't seem to 
be much reason for you to independently categorize companies, especially 
in your learning stages.

For Arbitrage Pricing Theory, you've got to decide on a pricing model.  
There are many implementations of many pricing models in R.
RMetrics is very complete for what it does, with some notable exceptions 
(fixed income instruments).  I've generally had a lot of luck using 
functions from RMetrics as building blocks for more complex analysis.

Regards,

  - Brian