This repository contains Python scripts for the final assignment of the Research Course. The assignment involves an in-depth Instrumental Variable (IV) Regression analysis. The scripts perform data analysis and IV regression using various Python libraries, providing insights into the effects of community participation on income levels.
The following Python libraries are used:
- pandas
- numpy
- matplotlib
- seaborn
- linearmodels
- Statsmodels
- Scipy
To run the scripts, you need to have Python installed on your system.
Once Python is installed, you can create a new Python environment and install the necessary libraries. Here's how you can do it using the command prompt:
- Open the command prompt.
- Navigate to the directory where you want to create the new environment.
- Run the following command to create a new environment named 'env':
python -m venv env
- Activate the environment:
- On Windows, run:
env\Scripts\activate
- On macOS and Linux, run:
source env/bin/activate
- On Windows, run:
- Once the environment is activated, you can install the necessary libraries using pip:
pip install pandas numpy matplotlib seaborn statsmodels linearmodels scipy
After installing the necessary libraries, you can run the Python scripts in this repository.