6. Analyzing RCT reemployment experiment#

6.1. Data#

In this lab, we analyze the Pennsylvania re-employment bonus experiment, which was previously studied in “Sequential testing of duration data: the case of the Pennsylvania ‘reemployment bonus’ experiment” (Bilias, 2000), among others. These experiments were conducted in the 1980s by the U.S. Department of Labor to test the incentive effects of alternative compensation schemes for unemployment insurance (UI). In these experiments, UI claimants were randomly assigned either to a control group or one of five treatment groups. Actually, there are six treatment groups in the experiments. Here we focus on treatment group 4, but feel free to explore other treatment groups. In the control group the current rules of the UI applied. Individuals in the treatment groups were offered a cash bonus if they found a job within some pre-specified period of time (qualification period), provided that the job was retained for a specified duration. The treatments differed in the level of the bonus, the length of the qualification period, and whether the bonus was declining over time in the qualification period; see http://qed.econ.queensu.ca/jae/2000-v15.6/bilias/readme.b.txt for further details on data.

# install.packages("librarian", quiet = T)
librarian::shelf(tidyverse, lmtest, sandwich, broom, hdm, quiet = T)
## loading the data
Penn <- as_tibble(read.table("https://github.com/d2cml-ai/14.388_r/raw/main/Data/penn_jae.dat", header=T ))
n <- dim(Penn)[1]
p_1 <- dim(Penn)[2]
Penn <- filter(Penn, tg == 4 | tg == 0)# subset(Penn, tg==4 | tg==0)
attach(Penn)
T4 <- (Penn$tg==4)
summary(T4)
   Mode   FALSE    TRUE 
logical    3354    1745 
glimpse(Penn)
Rows: 5,099
Columns: 23
$ abdt       <int> 10824, 10824, 10747, 10607, 10831, 10845, 10831, 10859, 105…
$ tg         <int> 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 0, 0, 4, 0, 0, 0, 0, 0,…
$ inuidur1   <int> 18, 1, 27, 9, 27, 27, 9, 27, 15, 28, 12, 22, 18, 1, 7, 18, …
$ inuidur2   <int> 18, 1, 27, 9, 27, 27, 9, 27, 15, 11, 12, 22, 18, 1, 7, 18, …
$ female     <int> 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0,…
$ black      <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1,…
$ hispanic   <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0,…
$ othrace    <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
$ dep        <int> 2, 0, 0, 0, 1, 0, 1, 1, 0, 0, 2, 2, 0, 2, 0, 0, 2, 0, 0, 0,…
$ q1         <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
$ q2         <int> 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 0, 0,…
$ q3         <int> 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 1, 0, 0,…
$ q4         <int> 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1,…
$ q5         <int> 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0,…
$ q6         <int> 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,…
$ recall     <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
$ agelt35    <int> 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0,…
$ agegt54    <int> 0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0,…
$ durable    <int> 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0,…
$ nondurable <int> 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0,…
$ lusd       <int> 0, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0,…
$ husd       <int> 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,…
$ muld       <int> 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1,…

6.1.1. Model#

To evaluate the impact of the treatments on unemployment duration, we consider the linear regression model:

\[ Y = D \beta_1 + W'\beta_2 + \varepsilon, \quad E \varepsilon (D,W')' = 0, \]

where \(Y\) is the log of duration of unemployment, \(D\) is a treatment indicators, and \(W\) is a set of controls including age group dummies, gender, race, number of dependents, quarter of the experiment, location within the state, existence of recall expectations, and type of occupation. Here \(\beta_1\) is the ATE, if the RCT assumptions hold rigorously.

We also consider interactive regression model:

\[ Y = D \alpha_1 + D W' \alpha_2 + W'\beta_2 + \varepsilon, \quad E \varepsilon (D,W', DW')' = 0, \]

where \(W\)’s are demeaned (apart from the intercept), so that \(\alpha_1\) is the ATE, if the RCT assumptions hold rigorously.

Under RCT, the projection coefficient \(\beta_1\) has the interpretation of the causal effect of the treatment on the average outcome. We thus refer to \(\beta_1\) as the average treatment effect (ATE). Note that the covariates, here are independent of the treatment \(D\), so we can identify \(\beta_1\) by just linear regression of \(Y\) on \(D\), without adding covariates. However we do add covariates in an effort to improve the precision of our estimates of the average treatment effect.

6.1.2. Analysis#

We consider

  • classical 2-sample approach, no adjustment (CL)

  • classical linear regression adjustment (CRA)

  • interactive regression adjusment (IRA)

and carry out robust inference using the estimatr R packages.

6.2. Carry out covariate balance check#

This is done using “lm_robust” command which unlike “lm” in the base command automatically does the correct Eicher-Huber-White standard errors, instead othe classical non-robus formula based on the homoscdedasticity command.

m <- lm(T4 ~ (female + black + othrace + factor(dep) + q2 +q3 + q4 +
        q5 + q6 + agelt35 + agegt54 + durable + lusd + husd)^2, data = Penn)
coeftest(m, vcov = vcovHC(m, type="HC1"))
t test of coefficients:

                        Estimate  Std. Error t value  Pr(>|t|)    
(Intercept)           0.32145725  0.16125607  1.9935 0.0462656 *  
female                0.10423328  0.13624779  0.7650 0.4442914    
black                 0.07164803  0.08288534  0.8644 0.3873969    
othrace               0.02801517  0.40496815  0.0692 0.9448502    
factor(dep)1         -0.07363340  0.20094637 -0.3664 0.7140574    
factor(dep)2         -0.10854072  0.15754307 -0.6890 0.4908810    
q2                   -0.02667937  0.16255836 -0.1641 0.8696419    
q3                   -0.00567387  0.16218178 -0.0350 0.9720934    
q4                    0.04334425  0.16233956  0.2670 0.7894821    
q5                    0.09386458  0.16157184  0.5809 0.5613028    
q6                   -0.22156423  0.15984049 -1.3862 0.1657604    
agelt35              -0.10923976  0.13323486 -0.8199 0.4123101    
agegt54              -0.43668630  0.13581268 -3.2154 0.0013111 ** 
durable              -0.12500967  0.17083793 -0.7317 0.4643590    
lusd                  0.11428653  0.06824019  1.6748 0.0940422 .  
husd                  0.09467997  0.07364116  1.2857 0.1986096    
female:black          0.08886596  0.04381635  2.0281 0.0425983 *  
female:othrace       -0.41350947  0.16481280 -2.5090 0.0121400 *  
female:factor(dep)1   0.05547519  0.04647943  1.1935 0.2327135    
female:factor(dep)2   0.04544801  0.04053454  1.1212 0.2622494    
female:q2            -0.18880964  0.13587953 -1.3895 0.1647314    
female:q3            -0.16526367  0.13565839 -1.2182 0.2231926    
female:q4            -0.17632875  0.13530942 -1.3032 0.1925829    
female:q5            -0.20321654  0.13480991 -1.5074 0.1317636    
female:q6            -0.04271603  0.14234389 -0.3001 0.7641207    
female:agelt35        0.07342181  0.03004676  2.4436 0.0145765 *  
female:agegt54        0.02612867  0.05090915  0.5132 0.6078053    
female:durable        0.01975687  0.04372711  0.4518 0.6514168    
female:lusd           0.00206955  0.03395251  0.0610 0.9513982    
female:husd           0.01178851  0.03747209  0.3146 0.7530827    
black:factor(dep)1   -0.11726334  0.06797874 -1.7250 0.0845893 .  
black:factor(dep)2   -0.02222434  0.06342353 -0.3504 0.7260446    
black:q2             -0.03349395  0.08989631 -0.3726 0.7094737    
black:q3             -0.19656696  0.08506268 -2.3108 0.0208818 *  
black:q4             -0.12493576  0.08604499 -1.4520 0.1465694    
black:q5             -0.20988793  0.08398490 -2.4991 0.0124822 *  
black:agelt35         0.06226414  0.04512447  1.3798 0.1677004    
black:agegt54         0.05126323  0.08453009  0.6064 0.5442439    
black:durable         0.10475086  0.06615415  1.5834 0.1133854    
black:lusd           -0.02103874  0.05600033 -0.3757 0.7071637    
black:husd            0.24964245  0.16874707  1.4794 0.1390996    
othrace:factor(dep)1 -0.85807661  0.33077992 -2.5941 0.0095115 ** 
othrace:factor(dep)2  0.24153715  0.13330391  1.8119 0.0700573 .  
othrace:q2            0.43717264  0.34672729  1.2609 0.2074202    
othrace:q3           -0.37343006  0.37701782 -0.9905 0.3219856    
othrace:q4            0.41589086  0.32950089  1.2622 0.2069414    
othrace:q5            0.00605385  0.31112921  0.0195 0.9844768    
othrace:agelt35       0.31647921  0.18343682  1.7253 0.0845395 .  
othrace:agegt54       0.30916352  0.15913988  1.9427 0.0521066 .  
othrace:durable      -0.19077665  0.13757582 -1.3867 0.1655946    
othrace:lusd         -0.09108976  0.20264053 -0.4495 0.6530804    
othrace:husd          0.00516356  0.20312636  0.0254 0.9797206    
factor(dep)1:q2       0.16575553  0.20084375  0.8253 0.4092430    
factor(dep)2:q2       0.08749363  0.15663627  0.5586 0.5764745    
factor(dep)1:q3       0.12098515  0.19967547  0.6059 0.5446028    
factor(dep)2:q3       0.13964196  0.15680429  0.8905 0.3732138    
factor(dep)1:q4       0.08476950  0.19909174  0.4258 0.6702857    
factor(dep)2:q4       0.09099807  0.15685510  0.5801 0.5618457    
factor(dep)1:q5       0.11045395  0.19829410  0.5570 0.5775381    
factor(dep)2:q5       0.09599502  0.15542385  0.6176 0.5368449    
factor(dep)1:q6       0.10069661  0.20903291  0.4817 0.6300216    
factor(dep)2:q6       0.04840278  0.16392190  0.2953 0.7677926    
factor(dep)1:agelt35 -0.07372986  0.04856221 -1.5183 0.1290132    
factor(dep)2:agelt35 -0.02438958  0.03750210 -0.6504 0.5154946    
factor(dep)1:agegt54 -0.08058890  0.06829342 -1.1800 0.2380409    
factor(dep)2:agegt54  0.02804903  0.12779824  0.2195 0.8262859    
factor(dep)1:durable -0.06027564  0.05959803 -1.0114 0.3118885    
factor(dep)2:durable  0.12466452  0.05025495  2.4806 0.0131473 *  
factor(dep)1:lusd     0.05896976  0.05246189  1.1240 0.2610461    
factor(dep)2:lusd     0.05157515  0.04708540  1.0954 0.2734147    
factor(dep)1:husd    -0.04332567  0.05587546 -0.7754 0.4381417    
factor(dep)2:husd    -0.08820323  0.04775494 -1.8470 0.0648067 .  
q2:agelt35            0.12754085  0.13321346  0.9574 0.3384031    
q2:agegt54            0.52955745  0.13686983  3.8691 0.0001106 ***
q2:durable            0.12611989  0.16953217  0.7439 0.4569544    
q2:lusd              -0.07617774  0.07121471 -1.0697 0.2848100    
q2:husd              -0.01882666  0.07542000 -0.2496 0.8028882    
q3:agelt35            0.13059171  0.13296592  0.9821 0.3260764    
q3:agegt54            0.47820240  0.13404885  3.5674 0.0003640 ***
q3:durable            0.05420566  0.16940199  0.3200 0.7489950    
q3:lusd              -0.05379374  0.06990174 -0.7696 0.4415960    
q3:husd              -0.06007985  0.07486872 -0.8025 0.4223197    
q4:agelt35            0.13100899  0.13279101  0.9866 0.3238962    
q4:agegt54            0.54033014  0.13143961  4.1109 4.005e-05 ***
q4:durable            0.09625171  0.16983764  0.5667 0.5709246    
q4:lusd              -0.10342038  0.07052957 -1.4663 0.1426184    
q4:husd              -0.17191877  0.07455451 -2.3059 0.0211543 *  
q5:agelt35            0.07077473  0.13203088  0.5360 0.5919501    
q5:agegt54            0.44377887  0.13056413  3.3989 0.0006818 ***
q5:durable            0.07466571  0.16765628  0.4453 0.6560862    
q5:lusd              -0.07611869  0.07005218 -1.0866 0.2772661    
q5:husd              -0.16162391  0.07301750 -2.2135 0.0269085 *  
q6:agelt35            0.17030213  0.13886226  1.2264 0.2201021    
q6:agegt54            0.56552338  0.15041890  3.7597 0.0001721 ***
q6:durable            0.25578701  0.17834228  1.4342 0.1515642    
agelt35:durable       0.00948986  0.04062983  0.2336 0.8153294    
agelt35:lusd         -0.02586155  0.03541632 -0.7302 0.4652926    
agelt35:husd          0.03548765  0.03973732  0.8931 0.3718702    
agegt54:durable      -0.06231416  0.06390387 -0.9751 0.3295462    
agegt54:lusd         -0.03662895  0.05793021 -0.6323 0.5272235    
agegt54:husd         -0.07421790  0.06125689 -1.2116 0.2257288    
durable:lusd         -0.05517360  0.04342256 -1.2706 0.2039228    
durable:husd         -0.00016918  0.05273588 -0.0032 0.9974404    
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

We see that that even though this is a randomized experiment, balance conditions are failed.

6.3. Model Specification#

# model specifications


# no adjustment (2-sample approach)
formula_cl <- log(inuidur1) ~ T4

# adding controls
formula_cra <- log(inuidur1) ~ T4 + (female + black + othrace + factor(dep) +
              q2 + q3 + q4 + q5 + q6 + agelt35 +agegt54 + durable +lusd + husd )^2
# Omitted dummies: q1, nondurable, muld


ols.cl <- lm(formula_cl, data = Penn)
ols.cra <- lm(formula_cra, data = Penn)


ols.cl = coeftest(ols.cl, vcov = vcovHC(ols.cl, type="HC1"))
ols.cra = coeftest(ols.cra, vcov = vcovHC(ols.cra, type="HC1"))

tidy(ols.cl)
tidy(ols.cra)
A tibble: 2 × 5
termestimatestd.errorstatisticp.value
<chr><dbl><dbl><dbl><dbl>
(Intercept) 2.056829710.0209547698.1557130.00000000
T4TRUE -0.085455410.03585569-2.3833150.01719391
A tibble: 104 × 5
termestimatestd.errorstatisticp.value
<chr><dbl><dbl><dbl><dbl>
(Intercept) 2.633080580.36809947 7.15317679.706770e-13
T4TRUE -0.079680120.03559092-2.23877662.521432e-02
female -0.114609260.31639042-0.36224007.171880e-01
black -0.899026490.24024626-3.74210401.845347e-04
othrace -2.626921610.45415507-5.78419537.729399e-09
factor(dep)1 -0.719697780.58121824-1.23825742.156788e-01
factor(dep)2 -0.040558360.35983953-0.11271249.102631e-01
q2 -0.159669990.37043166-0.43103766.664596e-01
q3 -0.539890610.37007942-1.45885071.446691e-01
q4 -0.433353960.37119426-1.16745872.430809e-01
q5 -0.345241130.36886953-0.93594383.493474e-01
q6 -0.493677290.37119655-1.32996201.835915e-01
agelt35 -0.625862410.30753420-2.03509864.189365e-02
agegt54 -0.361373130.71234128-0.50730346.119644e-01
durable -0.279228980.49151635-0.56809705.699946e-01
lusd -0.222870170.18725950-1.19016752.340371e-01
husd -0.170185190.20097701-0.84678943.971531e-01
female:black -0.154950720.12190711-1.27105572.037680e-01
female:othrace 0.310207320.42359960 0.73231264.640122e-01
female:factor(dep)1-0.027877820.11750120-0.23725568.124682e-01
female:factor(dep)2 0.148150220.10289219 1.43985871.499700e-01
female:q2 -0.087410170.31593476-0.27667167.820437e-01
female:q3 0.204876630.31575477 0.64884735.164669e-01
female:q4 0.273192900.31552433 0.86583783.866207e-01
female:q5 0.061148050.31475173 0.19427398.459693e-01
female:q6 0.287219900.33836991 0.84883413.960143e-01
female:agelt35 0.126386180.07712465 1.63872611.013333e-01
female:agegt54 0.039966420.12730239 0.31394877.535731e-01
female:durable 0.068001950.10982362 0.61919245.358179e-01
female:lusd 0.083740070.08494090 0.98586273.242482e-01
q2:agegt54 0.671218540.70879486 0.94698560.34369192
q2:durable -0.106412830.48764157-0.21821940.82726711
q2:lusd -0.042792470.18957620-0.22572700.82142298
q2:husd -0.041668350.19687813-0.21164540.83239231
q3:agelt35 0.454497990.30738644 1.47858830.13931345
q3:agegt54 0.866008180.70915532 1.22118270.22207451
q3:durable 0.244998510.48719509 0.50287560.61507392
q3:lusd 0.085867410.18721407 0.45865890.64649906
q3:husd 0.170303740.19683494 0.86521090.38696460
q4:agelt35 0.388223440.30732383 1.26323900.20656227
q4:agegt54 0.555334380.70744223 0.78498900.43249724
q4:durable 0.217338220.49110821 0.44254650.65811295
q4:lusd -0.095005840.18830290-0.50453730.61390608
q4:husd -0.120608270.19915192-0.60560940.54480168
q5:agelt35 0.277958700.30602492 0.90828780.36377001
q5:agegt54 0.451451640.70619808 0.63927060.52267625
q5:durable 0.288129000.48721766 0.59137640.55429504
q5:lusd -0.104022350.18908115-0.55014660.58224345
q5:husd -0.152336000.19691991-0.77359370.43920770
q6:agelt35 0.338110770.33272643 1.01618250.30959171
q6:agegt54 0.949346930.72897660 1.30230100.19287356
q6:durable 0.409167230.50818373 0.80515610.42076793
agelt35:durable 0.025278790.10150649 0.24903620.80334302
agelt35:lusd -0.065275720.08831815-0.73909750.45988254
agelt35:husd 0.057711900.10184206 0.56668030.57095684
agegt54:durable 0.031989050.16583044 0.19290220.84704343
agegt54:lusd -0.148162400.13744208-1.07799880.28108634
agegt54:husd -0.301546650.15375360-1.96123310.04990731
durable:lusd 0.115783190.11005470 1.05205130.29282689
durable:husd 0.237641140.12901037 1.84203130.06552981

The interactive specificaiton corresponds to the approach introduced in Lin (2013).

#interactive regression model;

X = model.matrix ( ~ (female + black + othrace + factor(dep) + 
                      q2 + q3 + q4 + q5 + q6 + agelt35 + agegt54 + durable + lusd + husd)^2)[,-1]

dim(X)

demean<- function(x){ x - mean(x)}

X = apply(X, 2, demean)

ols_ira = lm(log(inuidur1) ~ T4*X) 
ols_ira= coeftest(ols_ira, vcov = vcovHC(ols_ira, type="HC1"))
tidy(ols_ira)
  1. 5099
  2. 119
A tibble: 203 × 5
termestimatestd.errorstatisticp.value
<chr><dbl><dbl><dbl><dbl>
(Intercept) 2.057613080.0207723799.055271090.000000e+00
T4TRUE -0.075500550.03560489-2.120510403.401317e-02
Xfemale -0.666282330.40902136-1.628967091.033843e-01
Xblack -0.863486200.29766982-2.900818763.738472e-03
Xothrace -3.817688100.93891012-4.066084734.856015e-05
Xfactor(dep)1 0.035926430.64926578 0.055333939.558747e-01
Xfactor(dep)2 0.211755570.45232670 0.468147406.397000e-01
Xq2 -0.254643640.45645285-0.557875025.769552e-01
Xq3 -0.621232630.45607674-1.362123031.732217e-01
Xq4 -0.479926910.45723626-1.049625652.939421e-01
Xq5 -0.371867460.45499834-0.817294104.138001e-01
Xq6 -0.677047390.45325585-1.493742181.353075e-01
Xagelt35 -0.677705380.41036858-1.651455349.870976e-02
Xagegt54 -0.304109180.70232279-0.433004866.650303e-01
Xdurable -0.838008160.59780754-1.401802601.610376e-01
Xlusd -0.099489020.22848318-0.435432586.632677e-01
Xhusd -0.062641930.23548601-0.266011277.902417e-01
Xfemale:black -0.215479920.15087950-1.428159101.533099e-01
Xfemale:othrace 0.599438670.56394269 1.062942522.878604e-01
Xfemale:factor(dep)1-0.173424480.14222988-1.219325232.227795e-01
Xfemale:factor(dep)2 0.216641710.12664550 1.710615088.721554e-02
Xfemale:q2 0.391888550.40767215 0.961283613.364571e-01
Xfemale:q3 0.685039080.40733779 1.681746979.268169e-02
Xfemale:q4 0.721367900.40714421 1.771774917.649412e-02
Xfemale:q5 0.565776280.40577292 1.394317481.632850e-01
Xfemale:q6 0.908169730.43147278 2.104813493.535838e-02
Xfemale:agelt35 0.170075400.09529775 1.784673877.437613e-02
Xfemale:agegt54 0.235750960.16051680 1.468699591.419785e-01
Xfemale:durable 0.097413180.13795391 0.706128464.801419e-01
Xfemale:lusd 0.072007720.10678103 0.674349375.001211e-01
T4TRUE:Xq2:agelt35 -0.3016654760.6517732-0.4628380870.64350100
T4TRUE:Xq2:agegt54 0.1146393420.5672954 0.2020805090.83986218
T4TRUE:Xq2:durable -0.5168275050.7780445-0.6642647030.50655219
T4TRUE:Xq2:lusd 0.1657733200.4309371 0.3846809810.70049050
T4TRUE:Xq2:husd 0.5322575750.4617869 1.1526043600.24912908
T4TRUE:Xq3:agelt35 -0.2256636050.6520806-0.3460670310.72930721
T4TRUE:Xq3:agegt54 -0.1937228610.5659725-0.3422831870.73215248
T4TRUE:Xq3:durable -0.8490333770.7822032-1.0854383300.27778100
T4TRUE:Xq3:lusd 0.3147193070.4225769 0.7447622960.45645118
T4TRUE:Xq3:husd 0.3113014390.4634820 0.6716581290.50183305
T4TRUE:Xq4:agelt35 -0.1347929910.6512222-0.2069846410.83603046
T4TRUE:Xq4:agegt54 0.3529136560.5502729 0.6413429750.52132989
T4TRUE:Xq4:durable -0.6280831410.7948229-0.7902177640.42943888
T4TRUE:Xq4:lusd 0.3023492240.4223630 0.7158515530.47411715
T4TRUE:Xq4:husd 0.3028765380.4690497 0.6457238270.51848849
T4TRUE:Xq5:agelt35 0.0969516490.6493474 0.1493062840.88131811
T4TRUE:Xq5:agegt54 0.4822713780.5557568 0.8677741360.38556052
T4TRUE:Xq5:durable -1.2396074970.7855332-1.5780459620.11461965
T4TRUE:Xq5:lusd 0.6158450770.4260090 1.4456151580.14834918
T4TRUE:Xq5:husd 0.2946254600.4633891 0.6358057990.52493272
T4TRUE:Xq6:agelt35 -0.0010440320.7295168-0.0014311280.99885818
T4TRUE:Xq6:durable -1.3652498110.8496439-1.6068493540.10815190
T4TRUE:Xagelt35:durable 0.1439484770.2229223 0.6457339140.51848195
T4TRUE:Xagelt35:lusd -0.0138600690.1899414-0.0729702470.94183277
T4TRUE:Xagelt35:husd 0.0294056190.2174912 0.1352037180.89245637
T4TRUE:Xagegt54:durable 0.5449315840.3430590 1.5884484790.11224953
T4TRUE:Xagegt54:lusd -0.5793614840.2877536-2.0133944560.04412777
T4TRUE:Xagegt54:husd 0.1910486150.3277012 0.5829964130.55992257
T4TRUE:Xdurable:lusd -0.3744395300.2400369-1.5599248450.11884227
T4TRUE:Xdurable:husd -0.3381096140.2774443-1.2186578450.22303280

Next we try out partialling out with lasso

# library(hdm)

T4 = demean(T4)

DX = model.matrix(~T4 * X)[ ,-1]

rlasso.ira = summary(rlassoEffects(DX, log(inuidur1), index = 1))

print(rlasso.ira)
[1] "Estimates and significance testing of the effect of target variables"
   Estimate. Std. Error t value Pr(>|t|)  
T4  -0.07889    0.03555  -2.219   0.0265 *
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

6.4. Results#

# glimpse(ols_ira)
ols_ira[2,1]
-0.0755005494164947
# library(xtable)
table<- matrix(0, 2, 4)
table[1,1]<-  ols.cl[2,1]
table[1,2]<-  ols.cra[2,1]
table[1,3]<-  ols_ira[2,1]
table[1,4]<-  rlasso.ira[[1]][1]

table[2,1]<-  ols.cl[2,2]
table[2,2]<-  ols.cra[2,2]
table[2,3]<-  ols_ira[2,2]
table[2,4]<-  rlasso.ira[[1]][2]


colnames(table)<- c("CL","CRA","IRA", "IRA w Lasso")
rownames(table)<- c("estimate", "standard error")
# tab<- xtable(table, digits=5)
table
A matrix: 2 × 4 of type dbl
CLCRAIRAIRA w Lasso
estimate-0.08545541-0.07968012-0.07550055-0.07888608
standard error 0.03585569 0.03559092 0.03560489 0.03555130

Treatment group 4 experiences an average decrease of about \(7.8\%\) in the length of unemployment spell.

Observe that regression estimators delivers estimates that are slighly more efficient (lower standard errors) than the simple 2 mean estimator, but essentially all methods have very similar standard errors. From IRA results we also see that there is not any statistically detectable heterogeneity. We also see the regression estimators offer slightly lower estimates – these difference occur perhaps to due minor imbalance in the treatment allocation, which the regression estimators try to correct.