I have one more question regarding my regression analysis in the housing market.
I have generated a table with the mean values of several housing characteristics per quarter in which the houses were bought (=variable 'q') using:
Code:
tabstat lot unitsf floors rooms bedrms baths garage porch poolacc fplwk airsys cellar1 cellar2 cellar3, by (q) long
I noted that the average values of some housing characteristics were higher in the "hot" seasons (q2 and q3) compared to the "cold" seasons (q1 and q2), i.e. lot size (variable 'LOT').
What is the best way to check whether the values in the hot seasons are statistically different from the values in the cold seasons?
My mentor mentioned a t-test as a possible method...
For some exemplary data, refer to:
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input byte q long lot int unitsf byte(floors rooms bedrms baths garage porch poolacc fplwk airsys cellar1 cellar2 cellar3) 1 174113 2800 2 9 4 2 1 1 1 1 1 0 1 0 4 66000 1600 1 6 3 2 1 1 1 1 1 0 0 1 3 60720 1750 3 7 5 2 2 1 1 1 1 0 1 0 4 33000 3200 3 9 5 3 1 1 1 1 1 0 1 0 2 11000 2700 3 6 3 2 1 1 1 1 1 0 1 0 3 44000 3000 2 8 5 3 1 1 1 1 1 0 1 0 2 2500 3500 2 10 6 4 1 1 1 1 1 0 1 0 3 16720 1684 3 7 3 3 1 1 1 1 1 0 1 0 3 11000 2800 2 7 4 3 1 1 1 1 1 1 0 0 4 52800 16286 3 14 5 6 1 1 1 1 1 1 0 0 end
Thanks in advance.
0 Response to How to determine if variables are statistically different (using t-test)?
Post a Comment