This repository contains R code and data for analyzing quarterly apartment sale prices in Luxembourg, broken down by commune. The analysis focuses on time series forecasting to predict future price trends. This repository contains the code for the LuxAptPrice web application.
The data used in this project is obtained from data.public.lu, specifically the "Prix de vente des appartements par commune" dataset.
-
Clone the repository:
git clone [https://github.com/cavrilionis/LuxAptPrice.git](https://github.com/cavrilionis/LuxAptPrice.git) cd LuxAptPrice
-
Install required R packages:
Open R or RStudio and run the following:
install.packages(readLines("requirements.txt"))
-
Run the analysis:
Execute the R scripts in the
R/
directory in the following order:source("R/download.R") source("R/read.R") source("R/analyse.R")
The results, including forecasts and visualizations, will be saved in the
results/
directory.
-
Data download (
R/download.R
): This script downloads the raw data from data.public.lu. The downloaded Excel files are saved in thedata/
directory. -
Data processing (
R/read.R
): This script reads the Excel files and appends them into atsibble
. -
Time Series Analysis (
R/analyse.R
): This script performs time series forecasting using thefable
package. It applies appropriate models (e.g., ARIMA, ETS) to predict future apartment sale prices for each commune. -
Visualisations (
R/visualisations.R
): This script generates visualizations usingggplot2
andfabletools
to illustrate historical trends and forecast results.
- Quarterly apartment sale price analysis by commune.
- Time series forecasting for price prediction.
- Data visualizations for trend analysis.
- Clear and well-documented R code.
Contributions are welcome! Please follow the Contributing Guidelines.
This project is licensed under the MIT License.
For questions or issues, please open an issue on GitHub.