Learn R Programming

dCovTS (version 1.4)

ibmSp500: Monthly returns of IBM and S&P 500 composite index

Description

The monthly returns of the stocks of International Business Machines (IBM) and the S&P 500 composite index from January 1926 to December 2011.

Usage

ibmSp500

Arguments

Format

A data frame with 1,032 observations on the following 3 variables.

date

a numeric vector

ibm

a numeric vector

sp

a numeric vector

References

Tsay, R. S. (2010). Analysis of Financial Time Series. Hoboken, NJ: Wiley. Third edition.

Tsay, R. S. (2014). Multivariate Time Series Analysis with R and Financial Applications. Hoboken, NJ: Wiley.

Examples

Run this code
# \donttest{
### attach(ibmSp500)
### series <- tail(ibmSp500[, 2:3], 400)
### lseries <- log(series + 1)
### mADCFplot(lseries, MaxLag = 12)
### mADCFplot(lseries^2, MaxLag = 12)
# }

Run the code above in your browser using DataLab