Upload files to 'Empirisches Seminar: Regionale Unterschiede in der Mietpreisentwicklung'
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
# Empirisches Seminar: Regionale Unterschiede in der Mietpreisentwicklung
|
||||
|
||||
This Project is about... in STATA and R code
|
||||
Binary file not shown.
Reference in New Issue
Block a user