Upload files to 'Empirisches Seminar: Regionale Unterschiede in der Mietpreisentwicklung'

This commit is contained in:
2024-01-06 13:53:45 +01:00
parent 34a8dc62c0
commit efb33a3d25
3 changed files with 40 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
*###################################################################
* Autor: Marcel Weschke
* Lösungsmodell 1
* do file zum Erstellen und Bereinigen des Stadt/Land Datensatzes
* und der ökonometrischen Analyse der Daten mittels MLR modells.
*###################################################################
*****
* Loading the SOEP-Core.v37 (2022 teaching-edition) datasets:
*****
* Loading the SOEP-CORE.v37 "2009" related data:
use "/home/user/.../zh.dta", clear // adjust path to your file location
* Appending the SOEP-CORE.v37 "2014" related data:
append using "/home/user/.../beh.dta"
*****
* Pre-code: Adjust for inflation:
*
* Source: https://www-genesis.destatis.de/genesis/online
* Verbraucherpreisindex (CPI) for 2009, 2014, 2020 und 2022
*****
gen cpi_2009 = 87.2 / 100 // CPI 2009 as fraction
gen cpi_2014 = 94.0 / 100 // CPI 2014 as fraction
gen cpi_2020 = 100.0 / 100 // CPI 2020 as fraction -> base year
gen cpi_2022 = 110.2 / 100 // CPI 2022 as fraction -> "Betrachtungsjahr"
* Inflationsfaktoren zu den Jahren 2009 und 2014 mit Basisjahr 2020 und Betrachtungsjahr 2022:
bysort hid (syear): gen inflationsfaktor_2009 = cpi_2022 / cpi_2009
bysort hid (syear): gen inflationsfaktor_2014 = cpi_2022 / cpi_2014

View File

@@ -0,0 +1,3 @@
# Empirisches Seminar: Regionale Unterschiede in der Mietpreisentwicklung
This Project is about... in STATA and R code