Published January 13, 2021
| Version v2
Dataset
Open
Determinants of Airbnb prices in European cities: A spatial econometrics approach (Supplementary Material)
Description
This repository contains supplementary materials for the article:
Determinants of Airbnb prices in European cities: A spatial econometrics approach
(DOI: https://doi.org/10.1016/j.tourman.2021.104319)
The materials include the used datasets and Python scripts for spatial regression models.
Datasets
For each city two files are provided: data for weekday and weekend offers
The columns are as following:
- realSum: the full price of accommodation for two people and two nights in EUR
- room_type: the type of the accommodation
- room_shared: dummy variable for shared rooms
- room_private: dummy variable for private rooms
- person_capacity: the maximum number of guests
- host_is_superhost: dummy variable for superhost status
- multi: dummy variable if the listing belongs to hosts with 2-4 offers
- biz: dummy variable if the listing belongs to hosts with more than 4 offers
- cleanliness_rating: cleanliness rating
- guest_satisfaction_overall: overall rating of the listing
- bedrooms: number of bedrooms (0 for studios)
- dist: distance from city centre in km
- metro_dist: distance from nearest metro station in km
- attr_index: attraction index of the listing location
- attr_index_norm: normalised attraction index (0-100)
- rest_index: restaurant index of the listing location
- attr_index_norm: normalised restaurant index (0-100)
- lng: longitude of the listing location
- lat: latitude of the listing location
Programming Scripts
In this repository you will find a script for spatial regressions in Python using PySAL (models_robust.py).
The codes cover the following regression models:
- OLS
- SLX (lagged_x)
- SAR (lagged_y)
- SDM (lagged_x_y)
- SEM (lagged_e)
- SDEM (lagged_e_x)
Main parameters:
- cities - list of cities from the dataset to be included in the analysis
- Robust=False: calculate the OLS, SLX, SAR and SDM regressions with W (weight matrix) based on 10 closest neighbours
- Robust=True: calculate all regression models with different specifications of W
- direct_indirect=True: calculate the direct and indirect effects (based on Golgher, A. B., & Voss, P. R. (2016). How to Interpret the Coefficients of Spatial Models: Spillovers, Direct and Indirect Effects. Spatial Demography (Vol. 4). https://doi.org/10.1007/s40980-015-0016-y)
Key functions:
- create_weights - defines the W specification
- write_stats - calculates's Moran's I and Geary's C
- direct - calculates the direct effect of the variable
- indirect - calculates the indirect effect
- coord - sets the coordinate refence system (CRS) appropriate to the analysed city
- total_results calculates the regressions
- the coordinates are projected from GPS (epsg:4326) to the local CRS (km_lat, km_lon)
- all regressions are saved as formatted txt table
- the results can be also saved as csv table
Notes
Files
amsterdam_weekdays.csv
Files
(10.8 MB)
Name | Size | Download all |
---|---|---|
md5:cb68a0bdadee34bceb1627a5068ba250
|
226.6 kB | Preview Download |
md5:5cb4fd0cf341fb21c26f99dd5e4036ab
|
201.0 kB | Preview Download |
md5:4227285e45447ddf3dd7f61afe436523
|
554.6 kB | Preview Download |
md5:d32c00089226c541d2a30baacb2187f9
|
549.4 kB | Preview Download |
md5:6381278ed69b4b152bd5ecd78c03d15c
|
319.7 kB | Preview Download |
md5:484376affa23ada08228cd2be9c45b45
|
262.3 kB | Preview Download |
md5:888c6bd1ddf0eeda98bcf3675ed04a75
|
269.8 kB | Preview Download |
md5:bcff08ffdffb3014d9dfadf57f268b90
|
249.4 kB | Preview Download |
md5:fcf988d89733ab1d9a256ce7093d4416
|
434.2 kB | Preview Download |
md5:77796b7d12e921d43bf47b782bac4f64
|
407.3 kB | Preview Download |
md5:2d55fcb32020bc0e4f9182f01571a09f
|
593.1 kB | Preview Download |
md5:1d75c75774ad4b02e184f07c432a5b29
|
603.4 kB | Preview Download |
md5:124d4e30f2919e92d6ae4c7387610b72
|
960.4 kB | Preview Download |
md5:351e3d840439426d8a2f8b8629c88f16
|
1.1 MB | Preview Download |
md5:6927ee6c7b9d9eb85d864a5df9b0b8c4
|
12.4 kB | Download |
md5:b648076fdcccdfb8db1da13a4f89ebc8
|
650.1 kB | Preview Download |
md5:4c9c9288335d75da202d118ef2713264
|
740.6 kB | Preview Download |
md5:f0ef06e05182dc796a5cf8ab796fd5d5
|
933.3 kB | Preview Download |
md5:7c5f58a5351bc7adcbd09919f5604518
|
942.8 kB | Preview Download |
md5:4de6afb541e329e680632991e805c7f6
|
362.2 kB | Preview Download |
md5:a69334b1536e9866de745a0b98d6b6ce
|
374.9 kB | Preview Download |