当前位置:网站首页>DID的使用指南,原理
DID的使用指南,原理
2022-07-01 08:15:00 【小蜗笔记】
DID首先要满足平行趋势检验,如果不满足,使用三重DID检验。
为啥要检验呢?
上图:
如果不检验,意味着前期的发展特征是具有差异的,两个个体玩不到一块去,还怎么搞对比差异?
D1是政策后,D2是政策前。
视频截图来自于:
https://www.bilibili.com/video/BV1Ut4y1z7YE?share_source=copy_web
哈哈哈哈哈哈,如何做DID平行趋势检验呢?
是这样的
放链接:
https://www.jianshu.com/p/fb88cdfdf9f7
链接一大堆,其实挺简单的,就是拿着年份的虚拟变量做回归,如果政策发生之前的年虚拟变量不显著,政策发生之后的年份虚拟变量显著,这就意味着,符合平行趋势检验。
了解了这一基本原理。python就能跑喽
截图链接:
https://www.jianshu.com/p/fb88cdfdf9f7
原文说:
当然还有图示法。暂且不再介绍。
接下来看看看 DID如何做,很简单啊。
DID如何做
https://www.bilibili.com/video/BV1Ho4y1d7za?share_source=copy_web
上述链接很清晰,但是不要看着麻烦,其实其实,无论多时点还是did变量,只要把当地政策虚拟变量设置为1就可以了。

图片来源:
https://www.bilibili.com/video/BV1Ho4y1d7za?share_source=copy_web
然后分析DID的作用就可以了
边栏推荐
- On June 30, 2022, the record of provincial competition + national competition of Bluebridge
- Conception et mise en service du processeur - chapitre 4 tâches pratiques
- 程序员养生宝典
- shardingSphere
- OJ输入输出练习
- Comprehensive experiment Li
- Airsim雷达相机融合生成彩色点云
- PHP laravel wechat payment
- EDA open source simulation tool verilator beginner 6: debugging examples
- 【力扣10天SQL入门】Day10 控制流
猜你喜欢
![[staff] high and low octave mark (the notes in the high octave mark | mark range are increased by one octave as a whole | low octave mark | mark range are decreased by one octave as a whole)](/img/ff/ebd936eaa6e57b1eabb691b0642957.jpg)
[staff] high and low octave mark (the notes in the high octave mark | mark range are increased by one octave as a whole | low octave mark | mark range are decreased by one octave as a whole)

CPU設計實戰-第四章實踐任務一簡單CPU參考設計調試

【入门】输入n个整数,输出其中最小的k个
![[detailed explanation of Huawei machine test] judgment string subsequence [2022 Q1 Q2 | 200 points]](/img/0f/972cde8c749e7b53159c9d9975c9f5.png)
[detailed explanation of Huawei machine test] judgment string subsequence [2022 Q1 Q2 | 200 points]
![[getting started] intercepting strings](/img/16/363baa4982408f55493057200bcba5.png)
[getting started] intercepting strings

Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field

Learn reptiles for a month and earn 6000 a month? Tell you the truth about the reptile, netizen: I wish I had known it earlier

Aardio - Shadow Gradient Text

网关gateway-88

7-26 word length (input and output in the loop)
随机推荐
数字转excel的字符串坐标
On June 30, 2022, the record of provincial competition + national competition of Bluebridge
[staff] key number (key number identification position | key number marking list | a major key identification principle | F, C, G position marking ascending | F major key identification principle | B
Yolov5进阶之七目标追踪最新环境搭建
Instead of houses, another kind of capital in China is rising
Review of week 280 of leetcode
Why are some Wills made by husband and wife invalid
The difference between interceptors and filters
Connect timed out of database connection
【入门】输入整型数组和排序标识,对其元素按照升序或降序进行排序
Practice and Thinking on the architecture of a set of 100000 TPS im integrated message system
【力扣10天SQL入门】Day10 控制流
Codeworks round 803 (Div. 2) VP supplement
Provincial election + noi Part VI skills and ideas
Download jackson codehaus. org jar - downloading jackson. codehaus. org jar
毕业论文中word的使用1-代码域标公式
[untitled]
Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field
2022 Chinese cook (technician) simulation test and Chinese cook (technician) practice test video
Yolov5 advanced six target tracking environment construction