Question

In: Economics

You have monthly data on gasoline prices in two cities—Vancouver and Toronto, for the years 2006–2010....

  1. You have monthly data on gasoline prices in two cities—Vancouver and Toronto, for the years 2006–2010. In each month of each year, you observe the average price of gasoline in each city. Prices in Vancouver are usually higher than in Toronto, but the cities follow similar price trends, as prices rise in the summer months and respond similarly to demand and cost shocks. However, there are month-to-month fluctuations for various reasons.

    Starting from January 1, 2008, Vancouver imposed a carbon tax which was expected to be reflected in higher gasoline prices. Explain how you would use a difference-in- differences framework to estimate the effect of the carbon tax. Carefully define any new variables you need based on the data provided. Then, write down a line of R code which will run the regression you need. Make sure you point out which regression coeffcient is the desired estimate.

Solutions

Expert Solution

The difference in differences (DID) method is used to estimate the treatment effect on the treated sample of the data. To use DID, we require a control and treatment unit with pre and post-intervention in the dataset.  

In this case, control and treatment units are Toronto and Vancouver respectively with pre and post-intervention by a carbon tax (before and after January 1, 2008) which makes this setup suitable to implement DID. Assuming, sample data follow assumptions such as parallel trends, exchangeability, positivity, and SUTVA.

DID regression model to estimate the effect of a carbon tax is -

Prices = β0 + β1*[Time] + β2*[Intervention] + β3*[Time*Intervention] +ε

where Time is a dummy variable which takes a value 0 before January 1, 2008, and 1 otherwise. Intervention is a dummy variable for the treated unit that takes a value 0 in the case of Toronto (control unit) and 1 if the city is Vancouver (treated unit).  Lastly, the interaction of Time and Intervention is the DID variable.

R code to estimate would be -

DID_reg = lm(Prices ~ time + intervention+ time*intervention(did), data = mydata)

where my data is the name of the data. The coefficient on time*intervention (β3) would indicate the difference in changes over time and the main coefficient of interest.


Related Solutions

Consider a portion of monthly return data (In %) on 20-year Treasury Bonds from 2006–2010. Date...
Consider a portion of monthly return data (In %) on 20-year Treasury Bonds from 2006–2010. Date Return Jan-06 4.12 Feb-06 4.44 Mar-06 4.02 Apr-06 4.79 May-06 4.01 Jun-06 3.65 Jul-06 4.07 Aug-06 4.3 Sep-06 5.49 Oct-06 3.6 Nov-06 4.71 Dec-06 3.83 Jan-07 4.14 Feb-07 3.53 Mar-07 3.68 Apr-07 4.19 May-07 3.34 Jun-07 3.51 Jul-07 3.48 Aug-07 3.68 Sep-07 4.96 Oct-07 3.42 Nov-07 4.17 Dec-07 4.25 Jan-08 5.05 Feb-08 3.23 Mar-08 5.34 Apr-08 5.15 May-08 4.58 Jun-08 4.61 Jul-08 4.25 Aug-08...
Consider a portion of monthly return data (In %) on 20-year Treasury Bonds from 2006–2010. Index...
Consider a portion of monthly return data (In %) on 20-year Treasury Bonds from 2006–2010. Index Month Year Return 1 Jan 2006 3.34 2 Feb 2006 3.13 3 Mar 2006 4.67 4 Apr 2006 3.51 5 May 2006 3.8 6 Jun 2006 5.42 7 Jul 2006 4.6 8 Aug 2006 4.69 9 Sep 2006 4.62 10 Oct 2006 4.28 11 Nov 2006 5.08 12 Dec 2006 3.34 13 Jan 2007 3.91 14 Feb 2007 5.02 15 Mar 2007 3.91 16...
Consider a portion of monthly return data (In %) on 20-year Treasury Bonds from 2006–2010. Date...
Consider a portion of monthly return data (In %) on 20-year Treasury Bonds from 2006–2010. Date Return Jan-06 3.13 Feb-06 4.15 ⋮ ⋮ Dec-10 4.48 Source: Federal Reserve Bank of Dallas. Estimate a linear trend model with seasonal dummy variables to make forecasts for the first three months of 2011. (Round answers to 2 decimal places.) Year Month yˆty^t 2011 Jan 2011 Feb 2011 Mar DATA: Index Month Year Return 1 Jan 2006 3.13 2 Feb 2006 4.15 3 Mar...
Consider a portion of monthly return data (In %) on 20-year Treasury Bonds from 2006–2010. Date...
Consider a portion of monthly return data (In %) on 20-year Treasury Bonds from 2006–2010. Date Return Jan-06 5.12 Feb-06 4.14 ⋮ ⋮ Dec-10 5.47 Date Return ene-06 5.12 feb-06 4.14 mar-06 4.68 abr-06 5.25 may-06 5.35 jun-06 3.64 jul-06 4.68 ago-06 4.65 sep-06 3.55 oct-06 3.55 nov-06 4.3 dic-06 3.54 ene-07 3.8 feb-07 3.98 mar-07 4.33 abr-07 4.69 may-07 5.37 jun-07 4.74 jul-07 5.17 ago-07 3.22 sep-07 4.97 oct-07 5.13 nov-07 3.35 dic-07 3.86 ene-08 4.06 feb-08 4.64 mar-08...
If you’ve noticed rapidly rising gasoline prices, what could you infer? A. Gasoline prices have reached...
If you’ve noticed rapidly rising gasoline prices, what could you infer? A. Gasoline prices have reached a new equilibrium. B. Supply for gasoline has surpassed a new high. C. Demand for gasoline is rising. D. The quantity of gasoline bought exceeds the quantity of gasoline sold. Through diversification, investors can reduce _______ risk. A. unsystematic C. systematic B. purchasing power D. all If you wanted to participate in the IPO market, which of the following documents should you study before...
Oil and Gas Prices The average gasoline price per gallon (in cities) and the cost of...
Oil and Gas Prices The average gasoline price per gallon (in cities) and the cost of a barrel of oil are shown below for a random selection of weeks in 2015 . Oil ( $ ) Gasoline ( $ ) 55.78 2.654 41.96 2.269 52.08 2.445 57.28 2.710 58.15 2.805 67.59 3.071 The correlation coefficient for the data is =r0.978 and =α0.01 . Should regression analysis be done? The regression analysis should not be done. The regression analysis should be...
Oil and Gas Prices The average gasoline price per gallon (in cities) and the cost of...
Oil and Gas Prices The average gasoline price per gallon (in cities) and the cost of a barrel of oil are shown below for a random selection of weeks in 2015. Oil ($) Gasoline ($) 55.78 2.654 41.96 2.269 52.08 2.445 57.28 2.710 58.15 2.805 67.59 3.071
Oil and Gas Prices The average gasoline price per gallon (in cities) and the cost of...
Oil and Gas Prices The average gasoline price per gallon (in cities) and the cost of a barrel of oil are shown below for a random selection of weeks from 2015. Oil $47.79 $44.62 $81.08 $43.67 $40.58 $48.64 Gasoline 2.638 2.636 2.944 2.528 2.623 2.682 1) The correlation coefficient for the data is r = 0.951 and a = 0.01. Should regression analysis be done? a) The regression analysis should not be done or b) The regression analysis should be...
If you have monthly data over a number of years and the intercept is not suppressed,...
If you have monthly data over a number of years and the intercept is not suppressed, how many dummy variables will you introduce to test the following hypotheses, briefly specify the model and describe the dummy(ies)
The following shows a portion of the monthly returns data (in percent) for 2010-2016 for two...
The following shows a portion of the monthly returns data (in percent) for 2010-2016 for two of Vanguard's mutual funds: the Vanguard Energy Fund and the Vanguard Healthcare Fund. [You may find it useful to reference the t table.] DATE : ENERGY : HEALTHCARE : (Jan-10, -4.95, -0.19); (Feb-10, 1.8, 0.39); (Mar-10, 2.47, 1.18); (Apr-10, 3.14, -3.8); (May-10, -11.5, -5.09); (Jun-10, -5.95, -0.63); (Jul-10, 8.83, 1.47); (Aug-10, -5.84, -1.1); (Sep-10, 10.13, 8.32); (Oct-10, 3.98, 2.37); (Nov-10, 2.81, -2.41); (Dec-10, 5.71,...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT