Dear all,
I would like to investigate what determines price differences in housing prices across neighborhoods. In order to this, I've a dataset with transaction prices, the location of the house and some neighborhood specifics as the crime rate, the amount of inhabitants and the density.
In the table below a little example of my dataset is given.
Since my experience with Stata is not that great, I'm wondering if someone could help me. In another research I saw that someone performed a multilevel analysis in order to estimate whether for example the crime rate is a determinant for price differences across neighborhoods.
The research is conducted on the basis of the following (simplified) model:
yij = β0 + uj + εij
yij is the ith house in the jth neighborhood, β0 is the overall mean, uj is the neighborhood residual and εij is the error term.
Could someone explain me how to estimate this model with the above described dataset in Stata?
Thanks in advance.
Berend
I would like to investigate what determines price differences in housing prices across neighborhoods. In order to this, I've a dataset with transaction prices, the location of the house and some neighborhood specifics as the crime rate, the amount of inhabitants and the density.
In the table below a little example of my dataset is given.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long price str22 local_authority long inhabitants_2001 double(density_per_hectare_2001 crime_rate_1000_2016) 69950 "WANDSWORTH" 260380 76 192.92572394193104 178000 "EALING" 300948 54.2 77.48182410250276 185000 "SOUTHWARK" 244866 84.86 45.11447077176905 124300 "HAMMERSMITH AND FULHAM" 165242 100.73 170.9311192069813 535000 "CITY OF WESTMINSTER" 181286 84.41 166.8689253444833 54000 "CROYDON" 330587 38.21 84.81882227673805 58500 "BARNET" 314564 36.27 81.76396536157985 81950 "KINGSTON UPON THAMES" 147273 39.54 241.205108879428 195000 "CITY OF WESTMINSTER" 181286 84.41 166.8689253444833 65000 "CAMDEN" 198020 90.85 152.44924755075246 end
The research is conducted on the basis of the following (simplified) model:
yij = β0 + uj + εij
yij is the ith house in the jth neighborhood, β0 is the overall mean, uj is the neighborhood residual and εij is the error term.
Could someone explain me how to estimate this model with the above described dataset in Stata?
Thanks in advance.
Berend
Comment