What would be the STATA commands to get this regression output? VARIABLES Distan
ID: 3364579 • Letter: W
Question
What would be the STATA commands to get this regression output?VARIABLES Distance to any Visible Antenna Distance2 to any Visible Antenna Distance to any Antenna Distance2 to any Antenna Inverse Distance to Any Antenna Visible Constant In(Sales PSales Price In(Sales Price) 0.00772 (0.00150) 0.000183** (3.49e-05) 0.0104*** (0.00187) -0.000323 (5.8le-05) 0.0359**s (0.00886) 10.56** (0.0299) 10.51*** (0.0309) 10.50**4 (0.0307) 142,161 141,208 0.853 Yes Yes 141.208 0.853 es es 0.853 R-squared Year-month dmmies Tract fixed effects Block es fixed effects 0 errors in parentheses p0.0, *pc0.05,p0.1
Explanation / Answer
To run the regression analysis, your outcome (dependent) variable should be continuous. In your example, they have used multiple regression analysis for 3 different outcomes (Sales price 1,2,3) and they presented only significant independent variables (those variable p-values <0.05).
Let take your outcome variable: Y = Sales price (1), Sales price (2), Sales price (3)
X1 = Distance to any Visible Antenna
X2 = Distance2 to any Visible Antenna
X3 = Distance to any Antenna
X4 = Distance2 to any Antenna
Formula for multiple regression analysis
Y=a0 + X1b1 + X2b2 + X3b3 + X4b4
Stata command,
regress sales price (1) Distance to any Visible Antenna Distance2 to any Visible Antenna Distance to any Antenna Distance2 to any Antenna
regress sales price (2) Distance to any Visible Antenna Distance2 to any Visible Antenna Distance to any Antenna Distance2 to any Antenna
regress sales price (2) Distance to any Visible Antenna Distance2 to any Visible Antenna Distance to any Antenna Distance2 to any Antenna
Suppose if anyone your independent variable or all your independent variable are categorical then you can use the following command,
regress sales price (1) i.Distance to any Visible Antenna i.Distance2 to any Visible Antenna i.Distance to any Antenna i.Distance2 to any Antenna
R - squared value will be given in Stata output when you run each regression formula.
Independent variables are fixed effects, so they used here word only "Yes"
They did not use or check any cluster effect here so that they mentioned Block group fixed effects was "No"
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.