Answer the problem set questions in the do-file. Test the do-file before submitting it to be sure that it runs well and that we can reproduce your output. Add comments when appropriate (use “//”) and number your answers.

generate a new variable that will indicate the Enterprise Value of each firm. Label the variable “enterprise_value”. Please note that only meaningful values should be taken into consideration going further (i.e., no missing values).

Now, re-do question 1) using a loop to drop any missing values on the variable created to obtain the Enterprise Value of each firm.

Sometimes, manipulating your dataset becomes useful to extract important information. Create a variable with the season to which each episode belongs.

We will only analyse the companies with an enterprise value higher than or equal to $500k and in which the entrepreneur is either a Male or a Female. Drop any other possibility.

Now you need to aggregate data at the industry level. Pick three variables of your choice and calculate their averages at the industry level using the command collapse. Please make sure that the averages that you are computing are meaningful.

This is the last task. You need to start by going back to the dataset that you had before performing task 2). Keep only three variables: the company name, the year, and the deal amount variable. Convert the deal amount information from long format to wide using the command reshape.

In which year was the average deal amount the highest?