munich: Munich Rental Data

Description Usage Format Details Source References Examples

Description

Cost per square meter for rental units in Munich, Germany in 2003.

Usage

1
data("munich")

Format

A data frame with 2,035 observations on the following 4 variables.

rent

a numeric vector indicating the montly cost per square meter of rent in Euros

fsize

a numeric vector indicating the floor size of a rental unit in square meters

year

an integer vector indicating the year of construction of a rental unit

location

an integer vector with an identification number for the district within Munich where a rental unit is located

Details

These data were originally presented by Fahrmeir et al. (2004) and were later analyzed by others including Rue and Held (2005).

Source

The full data set with more predictor variables is directly available from the R-INLA website: https://folk.ntnu.no/hrue/r-inla.org/examples/munich/Munich.txt

References

Fahrmeir, L., T. Kneib, and S. Lang. 2004. Penalized structured additive regression for space-time data: a Bayesian perspective. Statistica Sinica 14, 731–761.

Rue, H., and L. Held. 2005. Gaussian Markov random fields: theory and applications. Chapman and Hall/CRC.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 ## Not run: 
data(munich)

## convert to list for passage to spmrf
rent_dat <- list(y=munich$rent, xvar1=munich$fsize)

## scatterplot of rent vs. floor size
plot(munich$fsize, munich$rent)


## End(Not run)

jrfaulkner/bnps documentation built on Sept. 27, 2020, 12:34 p.m.