HousePrices | R Documentation |
Sales prices of houses sold in the city of Windsor, Canada, during July, August and September, 1987.
data("HousePrices")
A data frame containing 546 observations on 12 variables.
Sale price of a house.
Lot size of a property in square feet.
Number of bedrooms.
Number of full bathrooms.
Number of stories excluding basement.
Factor. Does the house have a driveway?
Factor. Does the house have a recreational room?
Factor. Does the house have a full finished basement?
Factor. Does the house use gas for hot water heating?
Factor. Is there central air conditioning?
Number of garage places.
Factor. Is the house located in the preferred neighborhood of the city?
Journal of Applied Econometrics Data Archive.
http://qed.econ.queensu.ca/jae/1996-v11.6/anglin-gencay/
Anglin, P., and Gencay, R. (1996). Semiparametric Estimation of a Hedonic Price Function. Journal of Applied Econometrics, 11, 633–648.
Verbeek, M. (2004). A Guide to Modern Econometrics, 2nd ed. Chichester, UK: John Wiley.
data("HousePrices")
### Anglin + Gencay (1996), Table II
fm_ag <- lm(log(price) ~ driveway + recreation + fullbase + gasheat +
aircon + garage + prefer + log(lotsize) + log(bedrooms) +
log(bathrooms) + log(stories), data = HousePrices)
### Anglin + Gencay (1996), Table III
fm_ag2 <- lm(log(price) ~ driveway + recreation + fullbase + gasheat +
aircon + garage + prefer + log(lotsize) + bedrooms +
bathrooms + stories, data = HousePrices)
### Verbeek (2004), Table 3.1
fm <- lm(log(price) ~ log(lotsize) + bedrooms + bathrooms + aircon, data = HousePrices)
summary(fm)
### Verbeek (2004), Table 3.2
fm_ext <- lm(log(price) ~ . - lotsize + log(lotsize), data = HousePrices)
summary(fm_ext)
### Verbeek (2004), Table 3.3
fm_lin <- lm(price ~ . , data = HousePrices)
summary(fm_lin)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.