当前位置:网站首页>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的作用就可以了
边栏推荐
- Transaction method call @transactional
- 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
- Serial port oscilloscope software ns-scope
- 使用beef劫持用户浏览器
- 7-26 word length (input and output in the loop)
- Soft keyboard height error
- 01 numpy introduction
- Manually dig XSS vulnerabilities
- Internet of things technology is widely used to promote intelligent water automation management
- shardingSphere
猜你喜欢

【华为机试真题详解】判断字符串子序列【2022 Q1 Q2 | 200分】

Huawei machine test questions column subscription Guide

手工挖XSS漏洞

OJ输入输出练习

Agrometeorological environment monitoring system

【刷题】字符统计【0】

Soft keyboard height error

0 basic introduction to single chip microcomputer: how to use digital multimeter and precautions

Access report realizes subtotal function

Set up file server Minio for quick use
随机推荐
seaborn clustermap矩阵添加颜色块
leetcode T31:下一排列
postgresql源码学习(26)—— Windows vscode远程调试Linux上的postgresql
Serial port oscilloscope software ns-scope
[detailed explanation of Huawei machine test] judgment string subsequence [2022 Q1 Q2 | 200 points]
Provincial election + noi Part VI skills and ideas
Tupu software has passed CMMI5 certification| High authority and high-level certification in the international software field
使用beef劫持用户浏览器
Differential: definition of total differential, partial derivative, gradient
機動目標跟踪——當前統計模型(CS模型)擴展卡爾曼濾波/無迹卡爾曼濾波 matlab實現
Five combination boxing, solving six difficult problems on campus and escorting the construction of educational informatization
Cmake I two ways to compile source files
Programmer's regimen
Chinese font Gan: zi2zi
[untitled]
EDA open source simulation tool verilator beginner 6: debugging examples
empirical study and case study
CPU design practice - Chapter 4 practical tasks - simple CPU reference design and debugging
Soft keyboard height error
谈谈数字化转型的几个关键问题