Learn R Programming

stockPortfolio (version 1.2)

stock04: Data for 24 stocks and 1 index, 2004-9

Description

Sixty monthly stock observations from 2004-10-01 to 2009-09-01 for 24 stocks in six industries. There is also a 25th column for an index, the S&P500.

Usage

data(stock04)

Arguments

Format

The format is numerical with 60 rows and 25 columns. The column names provide the tickers, and row names describe the dates.

Source

Yahoo Finance.

Details

See stock94Info for a breakdown of the stocks by industry.

See Also

stock94Info, stock94, stock99, stockModel

Examples

Run this code
data(stock04)
data(stock94Info)
sm <- stockModel(stock04, model='SIM', index=25,
                 industry=stock94Info$industry)

Run the code above in your browser using DataLab