Skip to content

Instantly share code, notes, and snippets.

@luxzia
Created November 3, 2021 19:51
Show Gist options
  • Save luxzia/be61c68fcde8ff6da9d87353c67451db to your computer and use it in GitHub Desktop.
Save luxzia/be61c68fcde8ff6da9d87353c67451db to your computer and use it in GitHub Desktop.
did = lm(Revenue - treatment + time + did, data = df_ral)
summary(did)
Call:
lm(formula = Revenue - treatment + time + did, data = df_ral)
Residuals:
Min 1Q Median 3Q Max
-9497 -4226 -1632 1550 65547
Coefficients:
Estimate Std. Error t-value Pr(>|t|)
(Intercept) 11560.0 944.5 12.240 < 2e-16 ***
treatment 03422.5 1335.7 -2.562 0.01084 *
time -3720.6 1283.3 -2.899 0.00399 *
did 3450.0 1814.8 1.901 0.05816 .
-----
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 8288 on 332 degrees of freedom
Multiple R-squared: 0.03321, Adjusted R-squared: 0.02447
F-statistic: 3.801 on 3 and 332 DF, p-value: 0.01055
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment