| WarsawApts {HRW} | R Documentation |
Apartment prices in Warsaw, Poland
Description
'WarsawApts' is a subset of the data set 'apartments' in the R package PBImisc. This dataset contains the prices of the apartments which were sold in Warsaw, Poland, during the calendar years 2007 to 2009.
Usage
data(WarsawApts)
Format
A data frame with 409 observations on the following 6 variables:
surfacearea of the apartment in square meters.
districta factor corresponding to the district of Warsaw with levels
Mokotow,Srodmiescie,WolaandZoliborz.n.roomsnumber of rooms in the apartment.
floorfloor on which the apartment is located.
construction.dateyear that the apartment was constructed.
areaPerMzlotyarea in square meters per million zloty.
Source
The Polish real estate web-site https://www.oferty.net.
References
Biecek, P. (2016). PBImisc: A set of datasets in My Classes or in the Book 'Modele Liniowe i Mieszane w R, Wraz z Przykladami w Analizie Danych' 1.0.
Examples
library(HRW) ; data(WarsawApts)
x <- WarsawApts$construction.date
y <- WarsawApts$areaPerMzloty
plot(x,y,bty = "l",col = "dodgerblue")
if (require("mgcv"))
{
fitGAMcr <- gam(y ~ s(x,bs = "cr",k = 30))
xg <- seq(min(x),max(x),length = 1001)
fHatgGAMcr <- predict(fitGAMcr,newdata = data.frame(x = xg))
lines(xg,fHatgGAMcr,col = "darkgreen")
}