Hi guys, I'm a 2nd year undergrad student and need some help with the commands to run my regression.
I am studying the effects solar farms have on nearby property prices. ( i have a list of 300 separate farms)
For each solar farm i have created a (farm_id) which will be my fixed effect using the command 'egen', i have around 3000 individual house sales, and for each transaction i have created a dummy to show whether the transaction was before its corresponding solar farm was made operational or after (sold_after_farm_operational_dummy). I also have the transaction prices for each transaction (deflated_house_price).
So for a few of the solar farms i will have transactions shown by the dummy to be before(0) and after(1) the farm was made operational, and i want to see the effects of these solar farms being made operational have had on the house price.
The regression i want to run on STATA is deflated_house_price = farm_id (fixed effect) + b*sold_after_farm_operational_dummy
i have attached a screenshot of some of the data (ignore the HOUSE_ID and HPI column)
Some guidance on how to run this regression would be really appreciated!
thank you

I am studying the effects solar farms have on nearby property prices. ( i have a list of 300 separate farms)
For each solar farm i have created a (farm_id) which will be my fixed effect using the command 'egen', i have around 3000 individual house sales, and for each transaction i have created a dummy to show whether the transaction was before its corresponding solar farm was made operational or after (sold_after_farm_operational_dummy). I also have the transaction prices for each transaction (deflated_house_price).
So for a few of the solar farms i will have transactions shown by the dummy to be before(0) and after(1) the farm was made operational, and i want to see the effects of these solar farms being made operational have had on the house price.
The regression i want to run on STATA is deflated_house_price = farm_id (fixed effect) + b*sold_after_farm_operational_dummy
i have attached a screenshot of some of the data (ignore the HOUSE_ID and HPI column)
Some guidance on how to run this regression would be really appreciated!
thank you
Comment