Hello everyone,
Hope you're well.
First of all, I'm new to all of this. I'm struggling to identify where I'm going wrong in either setting up my xtset or in my xtreg [variables], fe.
I'm looking at the impact of constructing a sports stadium on property prices, constructing a hedonic pricing model (including things like beds, baths, garage...). I've run some difference-in-difference tests on the data, however I'm trying now to run some fixed effect regressions.
I've set it up (xtset) so my panel variable is the address (when encoded) and the time variable is the sales date (through a date() variable) - though this could be wrong?
The type of variables I have are byte for bed, bath, garage, as well as for my dummies (I don't know if that is a red flag or not?). Float for the date() sale date. Long for my encoded variables Address, type (Detached etc) and age (New build or not).
Subsequently, I've run my regression such that:
. xtreg LNPrice SQFT Trend i.Type i.Age Bed Bath Garage, fe robust
There are other variables to input, socioeconomic and distance etc, but I've also tried running the fixed effects regression with those included and it is giving me the same issue: all my variables end up omitted due to collinearity. The only variables which generate coefficients are SQFT and Trend.
If anyone has any idea on where I may be making a mistake, I'd be most grateful.
I feel my only other option would be to try the long method of setting up fixed effects through dummy variables, meaning I can run xtreg without the ', fe' at the end.
All the best.
Related Posts with Fixed effects omitted variables due to collinearity (xtreg, fe)
Delete observations with older date within one yearDear Statalists, my data set looks like this: Meeting Date Year Company Attending Person 25ma…
Vlookup in StataHello, There are four regions (Area Unit), and four people. The first table is the origin-destinati…
If-Else IssueHello All, I have a rather interesting issue. I am attempting to use some if-else statements for so…
Difference-in-difference regression (?) with aggregate (state-level) pooled cross-sectional dataGreetings, I'm running Stata 15.1 on OSX and working with aggregate state-level data. My dependent …
How to make a ttest with conditions?Hi! I don't know how to create a ttest for this null hypothesis: - H0: b1 +4b3 <= 50 - H1: b1 +4b…
Subscribe to:
Post Comments (Atom)
0 Response to Fixed effects omitted variables due to collinearity (xtreg, fe)
Post a Comment