Description Usage Format Details Source Examples
Robert J Shiller is an economics professor at Yale University, and one of the leading experts on housing prices in the United States. This data set contains his home price index (and some other data) over the past century.
1 | data(shiller)
|
A data frame with 126 observations on the following 2 variables.
Year
a numeric vector
Real.Home.Price.Index
a numeric vector
This data set is used as an example in the book "R in a Nutshell" from O'Reilly Media.
Other information (including long bond rates, US population size, and cost of
construction) is included in shiller.other.data
.
http://www.irrationalexuberance.com/
1 2 3 4 5 6 7 | data(shiller)
# loads shiller.index, shiller.other.data
# linear fit
hpi.lm <- lm(Real.Home.Price.Index~Year,data=shiller.index)
# plotting the fit
plot(shiller.index,pch=19,cex=0.3)
abline(reg=hpi.lm,lty=1)
|
Loading required package: nutshell.bbdb
Loading required package: nutshell.audioscrobbler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.