0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

因果推論:月次Event Study①

0
Last updated at Posted at 2026-06-29

因果推論:月次Event Study①

今回は月次Event Studyについて考えたいと思います。

所要時間は20分ほどとなっています。

それでは、さっそく始めていきましょう!

データの紹介

今回用いるサンプルデータはこちらからダウンロードできます。

スクリーンショット 2026-06-28 1.43.22.png

1行は、分析単位 (unit_id)​ における、ある時点(date)の観測値(visitors:来訪者数)を表しています。

列情報の説明

列名 数学記号 意味
unit_id string なし 分析単位のID
unit_name string なし 分析単位の名称
date date t 観測日
visitors int Yit 来訪者数
avg_dwell_minutes float Dit 平均滞在時間(分)
avg_circulation_m float CitCit​ 平均回遊距離(m)
treated 0/1 Ti 処置群かどうか
post 0/1 Postt 施策実施後期間かどうか
did 0/1 Ti×Postt DiDの交互作用項
event_time int k 施策時点からの相対時間
rain 0/1 Rit 雨フラグ
weekend 0/1 Wt 土日祝フラグ
holiday_season 0/1 Ht 大型連休・繁忙期フラグ
local_event 0/1 Eit 駅周辺イベントフラグ
station_users_idx int Si 駅利用者規模指数
commercial_density_idx int Mi 商業集積指数
land_price_idx int Li 地価指数
tourism_idx int Ui 観光需要指数
intervention_date date t0 介入開始日
intervention_name string なし 施策名

Pythonで実装

スクリーンショット 2026-06-29 21.30.32.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?