METR-11 · ECONOMETRICS

이중차분·사건 연구·비교집단DID, event studies and comparison groups

두 변화의 차이에서 반사실 추세·코호트·전체 가중치까지From a difference of changes to counterfactual trends, cohorts and complete weights

실습 6종 · 풀이 포함 연습문제 60개6 labs · 60 exercises with solutions

기초Foundations

1. 점수가 오른 이유를 두 번 묻습니다1. Ask twice why a score rose

새 연습법을 쓴 반의 평균 점수가20에서27로 올랐다고 합시다.7점 상승을 모두 연습법 덕분이라고 말할 수 있을까요? 같은 기간 기존 방식을 쓴 반도10에서12로 올랐다면 시험이 쉬워졌거나 모두가 성장했을 가능성을 생각해야 합니다. 아래 네 칸은 이해를 위한 가정이며 실제 학생 자료가 아닙니다.

첫 질문은 각 반이 얼마나 바뀌었는지입니다. 둘째 질문은 그 두 변화가 얼마나 다른지입니다.7−2=5라는 계산을 이중차분, DID라고 부릅니다.5점은 먼저 관측 비교값입니다. 새로운 연습법이 없었을 때 새 연습 반의 점수가 어떻게 바뀌었을지는 아직 보지 못했습니다.

가정 네 칸 · 점수 단위
집단이전이후변화
비교군010122
새 방법군120277

Suppose a class using a new practice method rises from 20 to 27. Can all seven points be attributed to the method? If a comparison class rises from 10 to 12 during the same period, an easier test or ordinary learning may explain some improvement. These four cells are assumed for explanation, not actual student observations.

First ask how much each class changed. Then ask how different those changes were. Seven minus two equals five, the observed difference-in-differences, or DID. Five points is initially a comparison of observed means. We still have not observed how the new-method class would have changed without that method.

Four assumed cells · score units
GroupBeforeAfterChange
Comparison group010122
New-method group120277
기초Foundations

2. 보지 못한 칸은 0이 아닙니다2. An unobserved counterfactual is not zero

새 방법을 실제로 쓴 반의 이후 점수27은 보입니다. 같은 반이 같은 시점에 그 방법을 쓰지 않았을 때의 점수는 보이지 않습니다. 비교군의 이후 점수12를 그대로 대신 쓰면 출발점20과10의 차이까지 지워 버립니다. 필요한 것은 같은 집단의 다른 선택 아래 결과라는 반사실입니다.

DID는 비교군의 변화2를 새 방법군의 출발점20에 더해 처리 없는 이후22를 구성하는 아이디어입니다.27−22=5입니다. 그러나22는 관측된 새 방법군 점수가 아니라 두 집단의 처리 없는 변화가 같다는 전제 아래 만든 값입니다. 계산한 반사실과 직접 관측값을 같은 색 이름으로 섞지 마세요.

20+(12−10)=2220+(12-10)=22
27−22=527-22=5

We observe the new-method class scoring 27 afterward. We do not observe that same class at the same time without the method. Substituting the comparison class’s observed 12 would also erase the initial 20-versus 10 level difference. The missing quantity is a counterfactual outcome for the same target group under another treatment path.

DID borrows the comparison group’s change of two, adds it to the target’s initial 20 and constructs an untreated afterward value of 22. Observed 27 minus constructed 22 equals five. But 22 is justified by an untreated-trend premise, rather than observed in that target group. Keep observed outcomes and assumption-based counterfactuals visibly distinct.

20+(12−10)=2220+(12-10)=22
27−22=527-22=5
기초Foundations

3. 출발점과 변화의 차이를 직접 계산합니다3. Compute level gaps and change gaps

기호 μ_gt는 집단 g의 시점 t 평균이라고 합시다.0은 비교군·이전,1은 대상군·이후를 뜻하며 아래첨자 자리가 서로 다른 두 주소입니다. 변화부터 계산하면(27−20)−(12−10)=5입니다. 집단 간 격차부터 계산해도(27−12)−(20−10)=15−10=5입니다.

순서를 바꿔 비교군 변화에서 대상군 변화를 빼면−5입니다. 같은 산술에 방향 이름만 바뀐 것이므로 어느 집단을 대상이라 했는지 반드시 적어야 합니다. 이중차분의 단위는 원 결과와 같은 점수입니다. 두 번 뺀다고 점수 제곱이나 무단위 숫자가 되지 않습니다.

d=(μ11−μ10)−(μ01−μ00)d=(\mu_{11}-\mu_{10})-(\mu_{01}-\mu_{00})

Write μ_gt for the mean in group g at time t. The positions identify group and time separately: zero denotes comparison/before and one target/after. Subtract changes to get(27−20)−(12−10)=5. Alternatively subtract the before level gap from the after gap:(27−12)−(20−10)=15−10=5.

Reversing the group direction produces−5. The arithmetic is consistent, but the named target changes; always state which group’s change is subtracted from which. DID retains the original outcome unit, here score points. Two subtractions do not produce squared points or remove the measurement unit.

d=(μ11−μ10)−(μ01−μ00)d=(\mu_{11}-\mu_{10})-(\mu_{01}-\mu_{00})
기초Foundations

4. 차이와 비율은 다른 질문입니다4. Differences and ratios ask different questions

매출이10에서12,20에서27로 바뀌면 수준 DID는5원 단위입니다. 첫 집단의 증가율은20%, 둘째는35%이므로 증가율의 차이는15퍼센트포인트입니다. 수준 차이5와15퍼센트포인트는 서로 다른 결과를 측정합니다. 원 단위가 만 원이면5만 원이라고 읽어야 합니다.

모든 결과에100을 더하면 각 변화와 DID는 그대로입니다. 모든 결과를2배하면 DID도2배입니다. 반면 로그나 백분율 변환은 비선형이어서 처리 없는 평행 추세 전제 자체가 달라질 수 있습니다. 결과를 본 뒤 원하는 부호를 얻으려고 척도를 고르지 말고 연구 질문과 단위를 먼저 정합니다.

d(a+bY)=b d(Y)d(a+bY)=b\,d(Y)

For outcomes 10→12 and 20→27, level DID is five outcome units. Growth rates are 20% and 35%, whose difference is fifteen percentage points. Five units and fifteen percentage points answer different questions. If the recorded unit is ten thousand won, read the level contrast in ten-thousand-won units.

Adding 100 to every outcome preserves changes and DID; multiplying every outcome by two doubles DID. Logarithms and percentage changes are nonlinear and can change the untreated-parallel-trend restriction itself. Choose the outcome scale from the substantive question before examining which transformation produces a preferred sign.

d(a+bY)=b d(Y)d(a+bY)=b\,d(Y)
기초Foundations

5. 각 칸의 평균을 만드는 가중치5. Weights defining each cell mean

한 칸에 점수10·20인 두 관측이 있고 질량1·3을 선언하면 평균은(10+60)/4=17.5입니다. 이는 두 학생을 똑같이 세는 평균15와 다릅니다. 양의 질량과 결과의 곱을 더한 뒤 그 칸의 총질량으로 나누어 네 평균을 각각 만듭니다. 실습은0질량도 남기지만 그 행이 평균에 기여하지는 않습니다.

선형 가중치로 DID를 표현하면 비교군 이전은+, 비교군 이후는−, 대상군 이전은−, 대상군 이후는+입니다. 각 칸 안에서는 질량을 그 칸의 총질량으로 나눕니다. 네 평균의 부호 합은0이므로 결과 전체의 상수 이동이 지워집니다. 작업 질량을 표집 확률이라고 자동 해석하지 않습니다.

μgt=∑j:Gj=g,Tj=tmjYj∑j:Gj=g,Tj=tmj\mu_{gt}=\frac{\sum_{j:G_j=g,T_j=t}m_jY_j}{\sum_{j:G_j=g,T_j=t}m_j}

Two outcomes 10 and 20 with declared masses one and three average(10+60)/4=17.5, rather than the equal-observation mean 15. Build each cell mean by dividing its weighted outcome sum by its own total mass. The lab retains zero-mass rows, but they do not contribute to that mean.

The original-row linear contrast assigns plus to comparison/before, minus to comparison/after, minus to target/before and plus to target/after. Within a cell, divide row mass by that cell’s total. These four cell signs sum to zero, explaining invariance to a common outcome shift. Declared working masses are not automatically sampling probabilities.

μgt=∑j:Gj=g,Tj=tmjYj∑j:Gj=g,Tj=tmj\mu_{gt}=\frac{\sum_{j:G_j=g,T_j=t}m_jY_j}{\sum_{j:G_j=g,T_j=t}m_j}
기초Foundations

6. 빈 비교집단을 0점으로 채우지 않습니다6. Do not fill an empty comparison group with zero

비교군 이후 칸에 관측이 없거나 총질량이0이면 그 조건부 평균은 미정의입니다. 이 상황에서 화면의 빈칸을0점으로 채우면 존재하지 않은 평균을 새로 가정합니다. 반면 실제 관측된 결과0과 양의 질량은 정상적인 자료입니다. 실습의 ‘정의되지 않음’ 표시는 계산에 필요한 칸이 없음을 뜻합니다.

DID를 계산하려면 네 칸 모두 양의 총질량이 필요합니다. 한 집단의 두 시점만 가용하면 그 집단의 관측 변화는 계산해도 전체 DID는 미정의일 수 있습니다.0질량 행을 입력할 때도 결과는 유한한 수로 적는 계약이며, 알 수 없는 결과를0으로 바꾸라는 뜻이 아닙니다. 실제 자료에서는 원 결측 행을 보존한 뒤 비교 집합을 따로 정합니다.

If comparison/after has no observations or zero total mass, its conditional mean is undefined. Filling that blank with zero invents a mean. A genuinely observed zero outcome with positive mass is ordinary available data. In the lab, an undefined label indicates that a required conditional quantity is unavailable.

DID needs positive total mass in all four cells. A group’s own change can remain defined even when the overall contrast is not. The finite-input contract still requires a numerical outcome for a supplied zero-mass row; this is not permission to replace unknown outcomes with zero. Actual source selections preserve missing records before defining the comparison frame.

기초Foundations

7. 평균 변화에 사람이 바뀐 효과가 섞일 수 있습니다7. Changing people can change a mean

이전에 A의 결과0만 보이고 이후에 A=0,B=10이 보인다고 합시다. 파동 평균은0에서5로 오르지만 같은 A의 변화는0입니다. 이후 평균 상승5를 기존 사람들의 평균 개선이라고 부르면 구성이 바뀐 효과를 변화와 혼동합니다. 두 집단의 이중차분에서도 같은 문제가 양쪽에 생길 수 있습니다.

패널 비교는 같은 사람의 이전·이후를 연결한 뒤 고정한 사람 집합에서 평균을 만들 수 있습니다. 반복 횡단면 DID도 다른 표집·구성 안정성 조건 아래 사용할 수 있지만 같은 개인을 추적한 결과와 동일하다고 말하지 않습니다. 완전 짝만 남기면 선택된 표적이 달라질 수 있으므로 원 개체 수·선택 수·빠진 이유를 함께 보고합니다.

Suppose before contains only A with outcome zero, while after contains A=0 and B=10. The wave mean rises from zero to five, although A’s own change is zero. Calling five an average improvement for the original people confuses changing composition with within-person change. Either side of a two-group contrast can face this problem.

Panel comparisons can link identical units before and after and average over one fixed set. Repeated-cross-section DID can also be justified under appropriate sampling and composition premises, but it is not the same as following identical people. Restricting to complete pairs changes the selected target, so report original counts, selected counts and exclusion reasons together.

기초Foundations

8. 실습 · 네 칸과 방향을 조작합니다8. Lab · manipulate four cells and direction

기본값10·12·20·27에서 각 변화2·7과 DID5를 직접 계산한 뒤 실습 결과와 대조하세요. 네 결과 모두에100을 더하고, 이어서 모두2배하여 어떤 값이 불변이고 어떤 값이 재척도되는지 확인합니다. 대상군과 비교군을 바꿨을 때 부호가 바뀌는 이유도 말해 보세요.

다음에는 비교군 이후의 질량만0으로 바꿉니다. 그 평균과 전체 DID가 미정의로 바뀌는지, 여전히 정의된 다른 평균을0으로 덮어쓰지는 않는지 읽으세요. 정확 분수와 소수 근사는 따로 표시됩니다. 화면에 아주 작은 비영 값이0처럼 보이면 정확 비영 상태를 확인합니다.

Begin with 10,12,20,27. Calculate changes two/seven and DID five before checking the lab. Add 100 to every outcome, then double all outcomes. Identify which quantities remain invariant and which rescale. Explain the sign reversal after exchanging target and comparison labels.

Next set only comparison/after mass to zero. Inspect the undefined cell mean and overall contrast, while other available means remain intact. Exact fractions and decimal approximations are separate. When a tiny nonzero quantity looks like zero on screen, inspect its exact nonzero status rather than changing its mathematical meaning.

기초Foundations

9. 같은 사람에게 가능한 두 이후를 이름 붙입니다9. Name two possible post outcomes for one unit

Y₀pre는 처리 없는 이전 결과, Y₀post는 처리 없는 이후 결과, Y₁post는 처리를 받은 이후 결과입니다. 아래첨자0·1은 처리 상태이며 앞 절의 집단·시점 주소와 구별합니다. G=1은 실제 이후 처리 대상, G=0은 비교 대상입니다. 한 사람에게 두 이후 결과를 동시에 직접 관측할 수는 없습니다.

잠재 결과 실습에서는 이 세 값을 모두 가정해 넣습니다. 이때는 숨은 참값을 알고 관측 DID가 무엇을 더 포함하는지 실험할 수 있습니다. 실제 국가·개인·점포 자료에서 두 잠재 이후를 관측했다고 주장하지 않습니다. 실습의 완전한 잠재 표와 실제 관측 표를 구분하는 것이 인과 학습의 출발점입니다.

Y₀pre denotes the untreated pre outcome, Y₀post the untreated post outcome and Y₁post the treated post outcome. Their zero/one treatment subscripts differ from earlier group/time addresses. G=1 names the group treated afterward; G=0 names the comparison group. We cannot directly observe both post outcomes for the same unit at the same time.

The potential-outcome lab supplies all three quantities by assumption. Knowing the constructed hidden values lets us examine what observed DID includes beyond the effect. We do not claim to observe both potential post outcomes in actual country, person or store records. Keeping a complete assumed potential table separate from an observed table is the starting point.

기초Foundations

10. 효과의 평균을 누구에게 내나요?10. For whom is the effect averaged?

한 사람의 이후 처리 효과는 Y₁post−Y₀post입니다. ATT는 이 차이를 실제 대상군 G=1에서 평균 낸 값입니다. 전체 사람의 평균 ATE나 비교군의 평균 효과와 같은 말이 아닙니다. 가정 표에서 대상군의 두 이후가27·22이면 그 사람의 효과는5입니다.

가중 ATT에서는 대상군 안의 양의 질량 합으로 나누어야 합니다. 비교군 인원을 더 많이 모은다고 대상군 효과의 평균 대상이 저절로 바뀌지는 않습니다. 대상군 질량이0이면 ATT는 미정의입니다. 반대로 대상군의 잠재 표만 있으면 ATT는 계산할 수 있어도 비교군이 없어 DID는 계산하지 못할 수 있습니다.

ATT=E[Y1,post−Y0,post∣G=1]ATT=E[Y_{1,post}-Y_{0,post}\mid G=1]

A unit’s post-treatment effect is Y₁post−Y₀post. ATT averages this difference among actual target-group units G=1. It is neither the all-unit ATE nor the comparison group’s average effect. In an assumed row with treated and untreated post values 27 and 22, the effect is five.

A weighted ATT divides by positive target-group mass. Recruiting more comparison observations does not automatically change whose effects are averaged. Zero target mass makes ATT undefined. Conversely, a complete assumed potential table for targets can define ATT without a comparison group, even though observed DID then remains unavailable.

ATT=E[Y1,post−Y0,post∣G=1]ATT=E[Y_{1,post}-Y_{0,post}\mid G=1]
기초Foundations

11. 관측 DID는 효과와 추세 차이를 함께 담습니다11. Observed DID combines effects and a trend gap

대상군의 관측 이후에서 처리 없는 이후를 한번 더하고 빼 보세요. 대상군 관측 변화는 처리 효과의 평균과 대상군 처리 없는 변화의 합으로 나뉩니다. 여기서 비교군 관측 변화를 빼면 DID=ATT+δ가 됩니다. δ는 대상군 처리 없는 평균 변화에서 비교군 처리 없는 평균 변화를 뺀 값입니다.

기본 예에서 비교군은10→12, 대상군은 처리 없으면20→22이고 실제27이면 δ=2−2=0, ATT=5입니다. 처리 없는 대상군 이후를24로 바꾸면 같은 관측27에서 ATT는3, δ는2입니다. 관측 DID5는 그대로입니다. 정확한 산술은 반사실 추세를 대신 알아내 주지 않습니다.

d=ATT+δd=ATT+\delta
δ=E[ΔY0∣G=1]−E[ΔY0∣G=0]\delta=E[\Delta Y_0\mid G=1]-E[\Delta Y_0\mid G=0]

Add and subtract the target group’s untreated post outcome inside its observed change. That change splits into its average effect plus its untreated average change. Subtract the comparison group’s observed change to obtain DID=ATT+δ. Here δ is the target’s untreated mean change minus the comparison’s untreated mean change.

In the default example, comparison 10→12 and untreated target 20→22 give δ=0; observed target 27 then gives ATT five. Change only the assumed untreated target post outcome to 24: ATT becomes three and δ two, while observed DID remains five. Exact arithmetic does not reveal the missing counterfactual trend.

d=ATT+δd=ATT+\delta
δ=E[ΔY0∣G=1]−E[ΔY0∣G=0]\delta=E[\Delta Y_0\mid G=1]-E[\Delta Y_0\mid G=0]
기초Foundations

12. 평행 추세는 같은 출발점이 아닙니다12. Parallel trends do not require equal starting levels

비교군10→12와 처리 없는 대상군20→22는 출발점이10점 다르지만 변화는 둘 다2입니다. DID가 요구하는 평균 평행 추세는 이 처리 없는 변화의 평균이 같다는 조건입니다. 모든 사람의 변화가 완전히 같거나 두 집단의 전체 결과 분포가 독립이라는 조건과는 다릅니다.

유한 가정 표에서는 δ=0을 직접 계산할 수 있습니다. 실제 대상군 이후의 처리 없는 결과는 보이지 않으므로 관측 두 집단 선이 평행하게 보인다는 사실만으로 같은 조건을 확인했다고 말하지 않습니다. 어떤 비교집단·기간·선택 집합에서 왜 그 조건이 설득력 있는지 실질 근거를 적어야 합니다.

δ=0⟹d=ATT\delta=0\quad\Longrightarrow\quad d=ATT

Comparison 10→12 and untreated target 20→22 start ten points apart but both change by two. Mean parallel trends restricts these untreated average changes, rather than requiring equal initial levels. It also differs from identical changes for every person or independence of entire outcome distributions.

We can directly compute δ=0 in a complete assumed potential table. In actual data, targets’ untreated post outcomes remain hidden. Apparently parallel observed lines therefore do not verify this condition by themselves. Explain why the particular comparison group, period and selected frame make that counterfactual premise credible.

δ=0⟹d=ATT\delta=0\quad\Longrightarrow\quad d=ATT
기초Foundations

13. 시작 전 행동 변화도 효과일 수 있습니다13. Anticipatory behavior can precede the start date

정책이 다음 달 시행된다는 소식을 듣고 기업이 이번 달 채용을 미리 바꿀 수 있습니다. 그러면 관측 이전 결과가 처리 없는 이전 결과와 같다는 무예측·무사전효과 전제가 깨집니다. 달력상 시행일 이전이라는 이유만으로 안전한 기준 시점이 되지는 않습니다.

대상군의 이전 평균 사전효과를 A라 하면 같은 분해는 DID=ATTpost−A+δ입니다. 사후 효과5, 사전효과2, 처리 없는 추세 차이0이면 관측 DID는3입니다. 공표일·시행일·예상 가능한 행동 시점을 따로 기록하고, 기준 기간을 옮길 때 대상과 전제도 함께 다시 적습니다.

d=ATTpost−Apre+δd=ATT_{post}-A_{pre}+\delta

A firm may change hiring this month after learning that a policy starts next month. Its observed pre outcome may then differ from the untreated pre outcome, violating no anticipation. Being earlier than the legal implementation date does not automatically make a baseline unaffected.

If the target group’s mean pre effect is A, the same decomposition becomes DID=ATTpost−A+δ. A post effect of five, pre effect two and zero untreated trend gap give observed DID three. Record announcement, implementation and potentially anticipatory behavior separately, and restate the target and premises when moving the baseline.

d=ATTpost−Apre+δd=ATT_{post}-A_{pre}+\delta
기초Foundations

14. 처리의 의미와 집단 간 파급을 확인합니다14. Check treatment meaning and spillovers

일치성은 실제 받은 처리 경로의 잠재 결과가 관측 결과라는 연결입니다. 같은 처리1이라는 이름 아래 전혀 다른 강도·대상·시행 방식을 섞으면 어떤 개입의 효과인지 흐려질 수 있습니다. 비교군이 정책을 직접 받지 않았다는 사실과 정책의 간접 영향을 전혀 받지 않았다는 사실도 다릅니다.

최저임금 변경이 인접 주의 노동 이동·가격 경쟁에 영향을 주면 비교군 추세에도 파급이 섞일 수 있습니다. 이런 가능성이 실제 발생했다고 단정하는 것은 아니지만, 무간섭 또는 명시한 노출 모형의 근거가 필요합니다. 네 평균을 정확히 계산했다는 사실만으로 이 설계 조건이 해결되지는 않습니다.

Consistency connects an observed outcome to the potential outcome under the treatment path actually received. Combining different intensities, recipients or implementation versions under treatment one can obscure the intervention being compared. A group not directly treated may still experience indirect effects.

A minimum-wage change could influence neighboring-state labor mobility or price competition, affecting comparison trends. This is a design possibility rather than a claim that such spillovers occurred. Justify no interference or an explicit exposure model. Accurate computation of four means cannot establish that substantive condition.

기초Foundations

15. 동일한 관측 DID에 여러 효과가 맞을 수 있습니다15. The same observed DID can fit many effects

관측 DID5만 알려졌다면 δ가0일 때 ATT5, δ가2일 때 ATT3, δ가−1일 때 ATT6이 모두 같은 관측을 설명합니다. δ에 제한이 전혀 없으면 ATT=5−δ는 모든 실수를 움직일 수 있습니다. 이는 계산 프로그램이 오작동한 것이 아니라 관측만으로 숨은 추세를 구별하지 못한 것입니다.

추가 제약은 자료에서 확인한 사실과 연구자가 정당화한 가정으로 구분합니다. 예를 들어 δ를−1에서2 사이로 제한하면 ATT 전체 허용 집합은3에서6입니다. 하나의 추정 숫자만 내기 전에 어떤 전제를 바꾸면 결론이 어떻게 달라지는지 보여 주는 것이 더 정확한 보고일 수 있습니다.

A={5−δ:δ∈R}=R\mathcal A=\{5-\delta:\delta\in\mathbb R\}=\mathbb R

An observed DID of five is compatible with ATT five when δ=0, ATT three when δ=2 and ATT six when δ=−1. With no restriction on δ, ATT=5−δ spans all real numbers. This is observational nonidentification of a hidden trend, rather than a malfunctioning calculation.

Distinguish observed facts from additional restrictions justified by research design. For example, restricting δ to[−1,2] yields the complete allowed ATT set[3,6]. Before presenting one effect number, showing how conclusions change with the counterfactual premise may be the more precise report.

A={5−δ:δ∈R}=R\mathcal A=\{5-\delta:\delta\in\mathbb R\}=\mathbb R
기초Foundations

16. 실습 · 보이지 않는 추세만 바꿉니다16. Lab · change only the hidden untreated trend

관측 네 칸을10·12·20·27로 고정하세요. 대상군의 처리 없는 이후를22에서24로 바꾸고 실제 처리 이후27은 유지합니다. 관측 DID5는 그대로인데 ATT가5에서3, 추세 차이가0에서2로 바뀌는지 확인합니다. 숨은 한 칸을 바꾸는 일이 어떤 관측과 어떤 효과를 바꾸는지 구별해 보세요.

다음에는 대상군 질량만0으로 두고 ATT·추세 차이·DID의 정의 상태를 읽습니다. 가정된 전체 잠재 표에서 평균 평행 추세가 맞는다는 표시와 실제 자료에서 그 조건이 입증됐다는 주장을 구별하세요. 실제 국가·개인·점포 사례에 잠재 값을 채워 넣어 관측치라고 부르지 않습니다.

Hold observed cells at 10,12,20,27. Move only the target’s untreated post outcome from 22 to 24 while keeping treated post 27. Check that observed DID stays five, ATT moves from five to three and the trend gap from zero to two. Identify exactly which observation and effect quantities change when one hidden cell changes.

Then set target mass to zero and inspect definition status for ATT, the gap and DID. A mean-parallel-trend flag in an assumed complete potential table does not establish that condition in real data. Do not fill hidden potential values into actual country, person or store records and label them observed.

학부Undergraduate

17. 도입 시점과 두 고정효과를 구분합니다17. Separate adoption timing from two fixed effects

기업마다 새 시스템 도입 연도가 다를 수 있습니다. 개체 i의 최초 도입 시점을 G_i라 쓰고, 아직 도입하지 않았으면 D_it=0, 도입한 뒤 계속 사용하면1로 둡니다. 끝까지 도입하지 않은 개체는 별도 never 범주입니다. 이 장의 TWFE 실습은 한번 도입한 처리가 유지되는 경로를 가정합니다. 중단·재도입 정책을 몰래 같은 처리로 바꾸지 않습니다.

개체 절편 a_i는 바뀌지 않는 출발점을, 시점 절편 λ_t는 그 시점 공통 성분을 설명합니다. D의 계수 b와 두 절편 묶음을 함께 골라 양의 작업 가중 제곱오차를 최소화하는 계산이 TWFE입니다. 이것이 인과 효과를 추정한다는 말은 별도 반사실·오차·효과 이질성 조건을 필요로 합니다.

Dit=1{t≥Gi}D_{it}=1\{t\ge G_i\}
Q(a,λ,b)=∑itwit(Yit−ai−λt−bDit)2Q(a,\lambda,b)=\sum_{it}w_{it}(Y_{it}-a_i-\lambda_t-bD_{it})^2

Firms may adopt a new system in different years. Let G_i record first adoption, with D_it=0 before and one afterward when treatment remains active. Never adopters form a separate category. The TWFE lab assumes absorbing adoption; do not silently recode interrupted or repeated policies as this treatment path.

Unit intercept a_i describes an unchanged baseline; time intercept λ_t describes a common wave component. TWFE jointly chooses b and these intercepts to minimize a positively weighted squared-error criterion. Calling that coefficient a causal effect requires separate counterfactual, error and heterogeneity restrictions.

Dit=1{t≥Gi}D_{it}=1\{t\ge G_i\}
Q(a,λ,b)=∑itwit(Yit−ai−λt−bDit)2Q(a,\lambda,b)=\sum_{it}w_{it}(Y_{it}-a_i-\lambda_t-bD_{it})^2
학부Undergraduate

18. 처리 지시자도 같은 효과 공간에서 잔차화합니다18. Residualize treatment against the same effect space

먼저 개체·시점 지시자만으로 D를 가장 가깝게 설명하고 남은 r_D를 구합니다. y도 같은 공간을 제거할 수 있지만, r_D가 그 공간에 이미 직교하므로 분자는 r_D와 원 y의 가중 내적으로 계산해도 같습니다. r_D 제곱의 가중합이 양수일 때 b는 그 분자를 분모로 나눈 값입니다.

불균형 패널에서 원 개체 평균과 시점 평균을 한 번씩 빼는 요령을 쓰지 않습니다. 전체 효과 공간의 투영을 정확히 구해야 합니다. 이 실습은 개체 평균 제거 뒤 시점 열을 함께 풀고 전체 해집합을 보존합니다. 관측된 처리 변동이 모두 효과 공간에 흡수되면 분모는0이고 b는 미식별입니다.

b^=rDTWYrDTWrD\hat b=\frac{r_D^{\mathsf T}WY}{r_D^{\mathsf T}Wr_D}
ℓit=witrD,it∑jswjsrD,js2\ell_{it}=\frac{w_{it}r_{D,it}}{\sum_{js}w_{js}r_{D,js}^2}

Project D onto the unit/time indicator space and retain r_D. The outcome can be residualized against the same space. Because r_D is already orthogonal to it, its weighted inner product with original y gives the same numerator. Divide by positive weighted squared residual treatment variation to obtain b.

For unbalanced panels, do not subtract raw unit and time means once each as a shortcut. Use the actual projection space. This lab eliminates unit means, solves time columns jointly and retains complete solution families. If effects absorb all treatment variation, the denominator is zero and b is unidentified.

b^=rDTWYrDTWrD\hat b=\frac{r_D^{\mathsf T}WY}{r_D^{\mathsf T}Wr_D}
ℓit=witrD,it∑jswjsrD,js2\ell_{it}=\frac{w_{it}r_{D,it}}{\sum_{js}w_{js}r_{D,js}^2}
학부Undergraduate

19. 원행마다 어떤 가중치를 받는지 봅니다19. Inspect the weight on every original row

계수는 원 관측 결과의 선형 결합 b=Σℓ_it Y_it입니다. 처리 지시자가 식별되면 전체 원행 가중치 합은0이고 처리된 행의 가중치 합은1입니다. 따라서 비교에 쓰인 미처리 행의 가중치 합은−1입니다. 이는 원행에 대한 선형 대비 가중치이며 원래 선언한 양의 작업 가중치 w와 다른 숫자입니다.

원래 w가 모두 양수여도 잔차화한 r_D에는 음수가 생길 수 있습니다. 특히 처리된 행의 ℓ까지 음수일 수 있어 효과의 평균을 단순히 해석하기 어렵습니다. 실습은 어떤 처리 행이 음의 효과 가중치를 갖는지 원위치로 표시합니다. 음수 행을 설명 없이 삭제하면 다른 설계와 다른 목표를 만들게 됩니다.

∑itℓit=0\sum_{it}\ell_{it}=0
∑itℓitDit=1\sum_{it}\ell_{it}D_{it}=1

The coefficient is an original-outcome linear contrast b=Σℓ_it Y_it. When treatment is identified, all row weights sum to zero and treated-row weights sum to one; untreated weights therefore sum to minus one. These contrast weights differ from the original positive working weights w.

Positive w does not make residualized r_D positive. Some treated rows can themselves receive negative effect weights, complicating an average-effect interpretation. The lab reports their original positions. Deleting such rows without explanation changes the design and target rather than repairing the original interpretation.

∑itℓit=0\sum_{it}\ell_{it}=0
∑itℓitDit=1\sum_{it}\ell_{it}D_{it}=1
학부Undergraduate

20. 두 개체·세 시점의 음의 가중치20. Negative weights with two units and three waves

가정 개체 E는 시점1에, L은 시점2에 도입하고0·1·2에서 모두 관측됩니다. 작업 가중치는 전부1입니다. D는 E:(0,1,1), L:(0,0,1)입니다. 개체·시점 공간을 제거한 r_D는 E:(−1/6,1/3,−1/6), L:(1/6,−1/3,1/6)이고 제곱합은1/3입니다.

따라서 원행 대비 가중치는 E:(−1/2,1,−1/2), L:(1/2,−1,1/2)입니다. E의 마지막 처리 관측이−1/2를 받습니다. 처리 행 세 가중치1,−1/2,1/2의 합은1이지만 모두 비음수인 볼록 평균은 아닙니다. 표의 분수는 각 행을 직접 곱해 재계산할 수 있습니다.

가정 처리 경로와 대비 가중치
개체시점Dr_Dℓ
E00−1/6−1/2
E111/31
E21−1/6−1/2
L001/61/2
L10−1/3−1
L211/61/2

In an assumed panel, E adopts at time one and L at time two; both are observed at zero, one and two with unit working weights. D is E:(0,1,1), L:(0,0,1). Residualizing against unit/time effects gives E:(−1/6,1/3,−1/6), L:(1/6,−1/3,1/6), with squared sum 1/3.

Original-row contrast weights are consequently E:(−1/2,1,−1/2), L:(1/2,−1,1/2). E’s final treated observation receives minus one-half. Treated weights one, minus one-half and one-half sum to one, but do not form a convex average. Recompute each fraction from its row rather than relying on a regression label.

Assumed paths and contrast weights
UnitTimeDr_Dℓ
E00−1/6−1/2
E111/31
E21−1/6−1/2
L001/61/2
L10−1/3−1
L211/61/2
학부Undergraduate

21. 모든 개별 효과가 양수여도 회귀는 음수일 수 있습니다21. Positive effects can yield a negative regression coefficient

앞 표에서 처리 없는 모든 결과를0이라고 가정합니다. 처리 효과는 E의 시점1에서1, 시점2에서10, L의 시점2에서1입니다. 그러면 관측 y는 E:(0,1,10), L:(0,0,1)입니다. 처리된 세 관측의 단순 평균 효과는(1+10+1)/3=4로 양수입니다.

TWFE 계수는1×1−(1/2)×10+(1/2)×1=−7/2입니다. 처리 없는 결과가 모두0이어서 이 예에서는 추세 차이 때문도 아닙니다. 서로 다른 노출 기간의 효과를 음의 가중치로 섞은 결과입니다. 이것은 가정 반례이며 실제 국가·개인·점포에서 모든 효과를 관측했다는 주장이 아닙니다.

b^=1−5+12=−72\hat b=1-5+\frac12=-\frac72

Assume every untreated outcome in the preceding table is zero. Treated effects are one for E at time one, ten for E at time two and one for L at time two. Observed y is E:(0,1,10), L:(0,0,1). The simple average across treated observations is(1+10+1)/3=4, which is positive.

TWFE instead gives 1×1−(1/2)×10+(1/2)×1=−7/2. Untreated outcomes are zero, so an untreated trend gap does not explain this example. It mixes heterogeneous exposure effects with a negative weight. This is an assumed counterexample, not a claim to observe all effects in actual source data.

b^=1−5+12=−72\hat b=1-5+\frac12=-\frac72
학부Undergraduate

22. 기저 추세 성분과 효과 성분을 나눕니다22. Separate untreated baseline and treatment components

가정한 모든 원행에서 Y=Y₀+Dτ가 성립하면 선형 대비에 대입하여 b=ΣℓY₀+ΣℓDτ로 정확히 나뉩니다. 첫 항은 처리 없는 경로가 원행 가중치와 만나는 성분, 둘째는 처리 효과에 붙는 가중 성분입니다. 원자료에서 보이지 않는 Y₀·τ를 실제로 얻었다는 뜻은 아닙니다.

처리 없는 Y₀가 개체 상수+공통 시점으로 정확히 표현되면 첫 항은 직교성 때문에0입니다. 그래도 둘째 항의 처리 가중치가 음수일 수 있습니다. 반대로 효과가 공통 τ라면 둘째 항은 τ이지만 첫 항이 남으면 b=τ가 아닙니다. 두 종류의 해석 문제를 한 문장에 섞지 마세요.

b^=∑itℓitY0,it+∑itℓitDitτit\hat b=\sum_{it}\ell_{it}Y_{0,it}+\sum_{it}\ell_{it}D_{it}\tau_{it}

If every assumed row satisfies Y=Y₀+Dτ, substitution into the linear contrast gives b=ΣℓY₀+ΣℓDτ exactly. The first term combines untreated paths with row weights; the second combines treatment effects with treated weights. This does not reveal missing Y₀ and τ in actual data.

If untreated Y₀ lies exactly in the unit-plus-common-time space, orthogonality makes the first term zero. Negative treated weights can still affect the second. Conversely, a common effect τ makes the second term τ, but a remaining baseline term prevents b=τ. Keep baseline restrictions and effect-weight interpretation separate.

b^=∑itℓitY0,it+∑itℓitDitτit\hat b=\sum_{it}\ell_{it}Y_{0,it}+\sum_{it}\ell_{it}D_{it}\tau_{it}
학부Undergraduate

23. 전부 같은 때 도입하면 분리되지 않을 수 있습니다23. Common adoption can be absorbed by time effects

모든 개체가 이전에는0, 이후에는1이라면 D는 공통 이후 시점 지시자와 같은 열입니다. 개체·시점 효과를 이미 포함하면 D의 잔차는 전부0입니다. 아무 b를 고르고 이후 시점 계수에서 그만큼 빼도 원 예측은 같습니다.0으로 선택된 특정 해를 효과0이라고 읽으면 안 됩니다.

시점 하나를 기준으로 빼는 것은 전체 절편의 중복을 정리하는 규약이지 모든 계수를 식별해 주는 보증이 아닙니다. 불연결 시점·개체 구성이나 선형 종속도 전체 가족을 늘릴 수 있습니다. 실습은 처리 계수를 미식별로 표시하고 시점·개체 절편까지 함께 움직이는 전체 해집합을 반환합니다.

If everyone is untreated before and treated afterward, D duplicates the common after indicator. Once unit/time effects are included, residualized treatment is zero. Any b can be offset by the after coefficient while preserving original fits. A chosen particular coefficient zero is not an estimated zero effect.

Omitting one reference time removes one intercept redundancy; it does not guarantee identification of every coefficient. Disconnected unit/time patterns and further linear dependence add freedoms. The lab labels unidentified treatment as undefined and retains the complete family, including corresponding time and unit-effect movements.

학부Undergraduate

24. 실습 · 음의 효과 가중치와 미식별을 찾습니다24. Lab · inspect negative weights and nonidentification

E·L의 세 시점 표를 입력하고 D·r_D·원행 가중치·처리 가중치를 나란히 읽으세요. 효과1·10·1과 처리 없는0을 가정하면 관측 계수−7/2가 나오는지 손계산과 대조합니다. 이후 같은 상수 효과를 넣어 두 분해 성분이 어떻게 달라지는지도 비교합니다.

두 개체를 모두 시점1에 도입하도록 바꾸어 처리 분모0·미식별 가족을 확인합니다. 한 행을 빼 불균형으로 만들 때 단순 이중 평균 제거를 대신 쓰지 않습니다. 잠재 필드를 입력한다면 모든 행의 y₀와 τ를 함께 주고 관측 일치를 지켜야 합니다. 실습은 이 가정의 현실 타당성이나 표준오차를 인증하지 않습니다.

Enter the three-wave E/L table and inspect D, residualized D, row weights and treated-effect weights together. With effects one/ten/one and zero untreated outcomes, compare the reported−7/2 against hand arithmetic. Then use one common effect and inspect the two decomposition components.

Make both units adopt at time one to observe zero treatment variation and a nonidentified family. Remove a row to create imbalance without replacing the projection by naive double demeaning. Optional y₀ and τ must appear on every row and satisfy observed consistency. The lab does not certify these assumptions empirically or supply standard errors.

학부 심화 · 선택Advanced undergraduate · optional

25. 군과 시점별 효과를 먼저 정의합니다25. Define a group-time effect before aggregation

최초 도입 시점이 g인 개체들을 한 코호트라고 합시다. ATT(g,t)는 그 코호트의 시점 t에서 실제 도입 경로와 끝까지 도입하지 않은 경로 결과의 평균 차이입니다. 같은 사건 후1년이라도 서로 다른 달력 연도의 코호트 효과가 같다고 미리 가정하지 않습니다.

먼저 누구의 어느 시점 효과인지 작은 칸으로 정의한 뒤 여러 칸을 어떤 비중으로 평균할지 정합니다. 이 절의 기호는 흡수되는 도입 경로를 전제로 합니다. 실제 국가 소득군·개인 근접성군은 도입 시점이 관측된 처리 코호트가 아니므로 그 자료의 관측 차이를 곧바로 ATT(g,t)라고 이름 붙이지 않습니다.

ATT(g,t)=E[Yt(g)−Yt(∞)∣G=g]ATT(g,t)=E[Y_t(g)-Y_t(\infty)\mid G=g]

Call units first adopting at g a cohort. ATT(g, t) is that cohort’s average difference at time t between its actual adoption path and remaining untreated. Equal elapsed exposure does not automatically make effects equal across calendar-time cohorts.

Define whose effect at which time is being studied before choosing weights across such cells. This notation assumes absorbing adoption paths. Actual income and proximity groups do not record observed adoption cohorts, so their descriptive contrasts are not automatically ATT(g, t).

ATT(g,t)=E[Yt(g)−Yt(∞)∣G=g]ATT(g,t)=E[Y_t(g)-Y_t(\infty)\mid G=g]
학부 심화 · 선택Advanced undergraduate · optional

26. 비교 시점까지 처리되지 않은 집단26. Groups untreated through the comparison time

g=1 코호트의 시점2 효과를 생각하면 기준은 처리 전0일 수 있습니다. never 비교군은 끝까지 처리되지 않은 개체입니다. not-yet 비교군은 시점2까지 처리되지 않아 G>2인 개체와 never를 포함합니다. 같은 자료에서도 어느 비교집단을 정당화하는 평행 추세를 가정했는지에 따라 표적 식별식이 달라집니다.

이미 처리된 G<g 개체의 관측 변화에는 자체 효과의 변화가 섞여 있을 수 있습니다. 이를 처리 없는 추세라고 그대로 빌려오지 않습니다. 비교집단이 달라지면 인원만 늘어나는 것이 아니라 반사실 전제도 달라집니다. 실습은 never와 not-yet을 명시적으로 선택하며 이미 처리된 비교 개체는 제외합니다.

For cohort g=1 at time two, a baseline may be pre-treatment time zero. Never controls remain untreated throughout. Not-yet controls include units with G>2 plus never adopters. Even on the same file, identification depends on which comparison group’s untreated-trend restriction is justified.

Observed changes for already treated G<g units may include changes in their own effects. Do not borrow these as untreated trends. Changing controls changes the counterfactual premise as well as the sample count. The lab explicitly selects never or not-yet and excludes already treated controls.

학부 심화 · 선택Advanced undergraduate · optional

27. 같은 짝과 같은 개체 가중치를 고정합니다27. Fix paired units and unit weights

기준 b와 비교 p를 정한 뒤 각 개체의 두 행이 모두 있는지 확인합니다. 적격 대상군·비교군 안에서 완전한 짝만 골라 먼저 차이를 구하고 같은 사람 집합의 평균을 냅니다. 한 시점이 없다고0으로 채우면 그 개체의 새 결과를 만들어 넣는 셈입니다.

한 개체에 두 시점 모두 같은 양의 작업 가중치를 쓰면 가중 평균 변화와 두 가중 평균의 차이가 같습니다. 시점마다 가중치를 바꾸면 이 대응은 일반적으로 깨집니다. 짝 비교 실습이 선택한 두 파동 가중치 불일치를 거절하는 이유입니다. 표집 이탈이 처리 없는 결과와 관련되는지도 선택 집합에서 따로 검토합니다.

Choose baseline b and comparison p, then check that both rows exist for each eligible unit. Form individual changes and average within fixed complete-pair groups. Filling a missing wave with zero would invent an outcome.

With the same positive weight for a unit at both waves, its weighted mean change equals the difference of the two weighted means. Changing weights across waves generally breaks this correspondence, which is why comparison rejects unequal selected-pair weights. Also examine whether attrition is related to untreated outcomes on the selected target frame.

학부 심화 · 선택Advanced undergraduate · optional

28. 아직 미처리 집합은 시점마다 달라집니다28. Not-yet controls can change across endpoints

E는1에, L은2에, N은끝까지 도입하지 않는다고 합시다. E의 시점1 비교에서는 L과N이 아직 미처리이지만 시점2 비교에서는 L을 계속 같은 비교군에 둘 수 없습니다. 실습의 not-yet은 항상 선택한 비교 시점 p를 기준으로 G>p를 검사합니다.

따라서 사건 후 효과의 변화처럼 보이는 차이에 비교군 구성이 바뀐 영향이 섞일 수 있습니다. 각 시점 ATT를 정당화한 전제와 평균 대상, 비교집단 목록을 함께 보고합니다. 구성까지 고정한 분석을 원하면 사용 가능한 공통 집합과 관측 지평을 다시 선언해야 합니다.

Let E adopt at one, L at two and N never. L and N are not-yet controls for E at time one, but L cannot remain untreated control at time two. The lab always checks G>p at the selected endpoint p.

A change that looks like treatment dynamics can therefore also involve a changed comparison composition. Report the premise, target and control list for each group-time comparison. To hold composition fixed, declare the common available cohorts and observation horizon explicitly.

학부 심화 · 선택Advanced undergraduate · optional

29. 이미 처리된 집단의 변화에는 효과 변화가 있습니다29. Already treated changes contain treatment dynamics

처리 없는 결과는 모두0이라고 가정합시다. 먼저 도입한 E의 효과가 비교 기준 시점1에서1, 이후2에서4로 늘고, 새로 도입한 L은1에서0·2에서3입니다. L의 관측 변화3에서 E의 변화3을 빼면0입니다. 하지만 L의 시점2 실제 효과는3입니다.

계산0은 잘못 뺀 산술이 아니라 잘못 이름 붙인 비교입니다. E의 효과 증가3을 처리 없는 공통 추세로 사용했기 때문입니다. not-yet 또는 never를 쓰는 대안도 그 집단의 반사실 전제를 정당화해야 하며, 이름만 바꾸면 인과 문제가 모두 해결되지는 않습니다.

Assume every untreated outcome is zero. Early adopter E’s effect rises from one at baseline time one to four at time two. Newly adopting L moves from zero to three. Subtracting E’s change of three from L’s change of three gives zero, although L’s actual time-two effect is three.

Zero is an accurately computed but incorrectly interpreted comparison. E’s own effect growth was treated as an untreated common trend. Never or not-yet alternatives still need justified counterfactual restrictions for those controls; changing the label alone does not settle causality.

학부 심화 · 선택Advanced undergraduate · optional

30. 달력·노출 기간·화면 순서를 섞지 않습니다30. Separate calendar time, exposure and display order

도입 연도2020의2022 관측은 사건시점 e=2입니다. 도입 연도2021의2022는 e=1입니다. 같은 달력 연도를 비교할 때와 같은 노출 기간을 비교할 때 평균 대상이 다릅니다. never 개체에는 유한한 도입 시점이 없어 같은 t−g를 임의로 만들지 않습니다.

실제 개인 자료의1976·1978·1980을 화면에서0·1·2번째 점으로 배치해도 관측 간격은2년입니다. 점포 before/after는 파동 이름이지 정확 날짜가 아닙니다. 실제 사례 그림은 기록된 시점 표지와 고정 기준 대비 관측 대비를 표시하며 정책 도입의 사건시점으로 위장하지 않습니다.

e=t−ge=t-g

An observation in 2022 for a 2020 adoption has event time e=2; for 2021 adoption it has e=1. Calendar-time and exposure-time comparisons average different objects. Never units have no finite adoption date from which to invent t−g.

Displaying 1976,1978,1980 at ordinal positions zero/one/two does not turn their gaps into one year. Store before/after labels are waves rather than exact dates. Actual-case plots retain recorded labels and fixed-reference observed contrasts, without presenting descriptive group comparisons as policy event times.

e=t−ge=t-g
학부 심화 · 선택Advanced undergraduate · optional

31. 기준 계수 0은 전제를 검증한 결과가 아닙니다31. A zero reference coefficient is a normalization

사건시점 지시자를 회귀에 넣을 때 한 기간을 기준으로 빼고 그 계수를0으로 정의할 수 있습니다. 이는 다른 계수의 비교 기준을 정한 것입니다. 그 기준 시점의 경제적 효과가 실제0이라는 검정 결과가 아닙니다. 다른 기준을 고르면 좌표 표현이 달라져도 같은 관측 적합 공간을 표현할 수 있습니다.

도입 코호트·시점 지시자들이 추가로 종속될 수도 있으므로 기준 하나를 뺐다고 모든 사건시점 계수가 식별되는 것은 아닙니다. 이 장의 TWFE 실습은 정적 D와 시점 열의 전체 가족을 보여 주며, 임의의 모든 동적 계수나 유의성 검정을 계산했다고 주장하지 않습니다.

An event-study regression can omit one relative period and define its coefficient as zero. This chooses a reference for other coordinates; it does not test that the economic effect in that period is zero. Changing reference can alter coordinate expressions while preserving the observed fitted space.

Cohort and time columns can have further dependencies, so omitting one reference does not ensure every relative-time coefficient is identified. This chapter’s TWFE lab returns complete families for static D and time columns. It does not claim to fit every dynamic-event coefficient or perform significance tests.

학부 심화 · 선택Advanced undergraduate · optional

32. 실습 · 비교집단과 완전 짝을 추적합니다32. Lab · track controls and complete pairs

E·L·N의 도입 시점을1·2·never로 두고 E의0→1,0→2 비교를 만듭니다. never와 not-yet을 바꾸어 각 경우에 실제 남은 비교 개체 목록을 읽으세요.0→1에서 들어왔던 L이0→2에서는 빠져야 합니다. 두 시점 중 하나가 없는 개체는 완전 짝에서 제외되는지도 확인합니다.

같은 개체의 선택 파동 가중치를1과2로 다르게 주어 거절 조건을 읽고, 다시 동일한 가중치로 복원합니다. 결과를 보고할 때 관측 대비·가용 대상 인원·비교 인원·기준 시점·필요한 평행 추세 전제를 한 문단에 적으세요. 알고리즘이 적격 비교군을 골랐다는 사실과 그 비교군이 실질적으로 타당하다는 주장을 구분합니다.

Set adoption times for E, L, N to one, two, never and compare E from zero to one, then zero to two. Switch never versus not-yet and inspect the actual retained controls. L may enter zero→one but must leave zero→two. Check that units missing either selected wave are excluded from complete pairs.

Give one unit weights one and two at its selected waves and read the rejection condition; restore equal weights afterward. Report observed contrast, target count, control count, baseline and the needed untreated-trend premise together. Algorithmic eligibility differs from substantive credibility of those controls.

학부 심화 · 선택Advanced undergraduate · optional

33. 사전 추세가 비슷해도 사후 반사실은 남습니다33. Similar pretrends leave post counterfactuals unobserved

두 집단의 처리 없는 평균이 시점−2·−1에서 모두 같은 속도로 늘었다고 합시다. 시점0에 대상 지역만의 수요 충격이 발생하면 처리 없는 대상군 추세가 그때부터 달라질 수 있습니다. 과거의 평행한 두 점은 이런 사후 차이가 없다는 논리적 증명이 아닙니다.

반대로 관측 사전 회귀 계수가0과 통계적으로 구별되지 않는다고 진짜0이라는 뜻도 아닙니다. 정밀도가 낮을 수 있고, 서로 다른 시점 효과가 섞이는 동적 회귀 설계일 수 있습니다. 사전 자료는 설계의 설명력을 점검하는 근거로 쓰되 사후 잠재 결과를 관측했다고 바꾸어 말하지 않습니다.

Suppose untreated group means move at equal rates at times−2 and−1. A target-specific demand shock at time zero could then change the untreated target path. Two parallel past points do not logically rule out this post-period difference.

A pre-coefficient statistically indistinguishable from zero is also not proof of an exact zero. Precision can be weak, and dynamic regressions can mix effects across periods. Use pre-data as evidence about a design’s plausibility, without treating future untreated potential outcomes as observed.

학부 심화 · 선택Advanced undergraduate · optional

34. 행 수와 독립 정책 정보는 다릅니다34. Rows differ from independent policy information

한 점포를 두 번 보았다고 독립 실험을 두 번 한 것은 아닙니다. 같은 지역의 여러 점포가 공통 정책·수요 충격을 받으면 점포 간에도 의존할 수 있습니다. 원410점포라는 숫자만으로410개의 독립 정책 배정이 생기지 않습니다. 특히 두 주를 비교하는 정책 설계에서 이 차이를 기억해야 합니다.

불확실성 추론에는 표집·배정·의존 구조와 적절한 큰 표본 또는 유한 배정 논거가 필요합니다. 개체 군집 표준오차라는 이름만 붙이면 아주 적은 정책 집단 문제까지 자동 해결되는 것은 아닙니다. 이 장의 실습은 정확한 관측 산술·가중치·가정 기반 집합을 반환하며 표준오차·p값·신뢰구간을 만들어 붙이지 않습니다.

Observing a store twice does not create two independent experiments. Stores in one region can share policy and demand shocks. A file with 410 stores does not supply 410 independent policy assignments, especially for a policy comparison across two states.

Uncertainty requires justified sampling, assignment and dependence structures plus an appropriate asymptotic or finite-assignment argument. Merely labeling standard errors clustered does not automatically solve a very small number of policy groups. Labs here return exact descriptive arithmetic, weights and assumption-based sets without invented standard errors, p-values or confidence intervals.

학부 심화 · 선택Advanced undergraduate · optional

37. 추세 차이의 범위를 효과 범위로 옮깁니다37. Translate a trend-gap range into an effect range

관측 DID가 d이고 처리 없는 추세 차이δ가[L,U] 안이라고 가정하면 ATT=d−δ입니다. δ가 커질수록 ATT는 작아지므로 아래 끝은d−U, 위 끝은d−L입니다. 기본 d=5,δ∈[−1,2]이면 허용 ATT는[3,6]입니다. 끝점 순서를 반대로 쓰지 않도록 실제 숫자로 검산합니다.

이 범위는 선언한 가정 아래 모든 가능한 효과를 모은 식별 집합입니다.95% 신뢰구간이 아닙니다. 실제 δ가 그 안에 있다는 사실을 자료가 증명한 것도 아닙니다. 표집 오차를 더하려면 별도 추론 설계가 필요하며 이 실습은 그 둘을 한 색 막대로 섞지 않습니다.

A(d;L,U)=[d−U,d−L]\mathcal A(d;L,U)=[d-U,d-L]

For observed DID d and an assumed untreated trend gap δ∈[L, U], ATT=d−δ. A larger gap gives a smaller effect, so the lower endpoint is d−U and the upper d−L. Default d=5 and δ∈[−1,2] yield[3,6]. Verify endpoint order with numbers before generalizing.

This identification set contains every effect permitted by the declared restriction. It is not a 95% confidence interval, nor does it prove the actual gap satisfies the bound. Sampling uncertainty requires another inferential argument; the lab keeps those concepts separate.

A(d;L,U)=[d−U,d−L]\mathcal A(d;L,U)=[d-U,d-L]
학부 심화 · 선택Advanced undergraduate · optional

38. 평균 대상과 비음수 비중을 먼저 정합니다38. Choose targets and nonnegative aggregation weights

두 군·시점 효과가3과7이고 대상 비중이1:3이면 평균은(3+21)/4=6입니다. 같은 비중으로 어떤 사람·기간을 대표하는지 적어야 합니다. 코호트 인원 비중, 처리된 관측 수 비중, 각 코호트에 같은 비중은 서로 다른 표적입니다.

민감도 실습의 구성요소 가중치는 비음수이고 총합은 양수여야 합니다. 음의 TWFE 효과 가중치를 이 볼록 평균의 비중인 것처럼 넣지 않습니다. 각 효과가 같은 결과 단위와 명시한 대상 정의를 가지는지도 확인합니다. 숫자만 평균할 수 있다는 사실이 경제적 표적의 적합성을 보장하지 않습니다.

θ=∑kakATTk∑kak\theta=\frac{\sum_k a_k ATT_k}{\sum_k a_k}
ak≥0,∑kak>0a_k\ge0,\qquad\sum_k a_k>0

Effects three and seven with target weights 1:3 average(3+21)/4=6. Explain whose units and periods those weights represent. Cohort-size weights, treated-observation weights and equal-cohort weights define different targets.

Sensitivity components require nonnegative weights with positive total. Do not pass negative TWFE effect weights off as proportions of this convex target. Check commensurable outcome units and explicitly defined component targets. Arithmetic ability to average numbers does not establish a meaningful economic estimand.

θ=∑kakATTk∑kak\theta=\frac{\sum_k a_k ATT_k}{\sum_k a_k}
ak≥0,∑kak>0a_k\ge0,\qquad\sum_k a_k>0
대학원 연결Graduate bridge

39. 왜 전체 허용 집합이며 언제 더 좁아지나요?39. Why is the set complete,and when can it shrink?

단일 대비에서 허용 ATT=a를 고르면 δ=d−a를 택할 수 있습니다. a가[d−U,d−L] 안이면 이 δ는[L,U] 안입니다. 비교군 변화는 고정한 채 대상군의 숨은 처리 없는 이후를 그 δ만큼 바꾸고, 처리 이후는 관측값 그대로 두면 모든 a를 만들 수 있습니다. 추가 결과 범위 제한이 없다는 전제가 중요합니다.

여러 구성요소의 δ 범위를 서로 독립적으로 고를 수 있는 직사각형 제약이면 비음수 가중 평균의 끝점은 각 끝점을 함께 택해 얻습니다. 하지만δ₁+δ₂=0 같은 교차 제약을 추가하면 그 두 끝점을 동시에 택하지 못할 수 있습니다. 실습의 sharp라는 말은 선언한 개별 범위 외에 숨은 교차 제약이 없다는 뜻입니다.

For any permitted effect a, choose δ=d−a. Membership a∈[d−U, d−L] makes that gap fall in[L, U]. Keep the comparison change and observed treated post outcome fixed while changing the target’s hidden untreated post value accordingly. This constructs every a when no additional outcome-support restriction is imposed.

For multiple components with freely selectable rectangular gap bounds, nonnegative weighted-average extrema occur by selecting all corresponding endpoints together. A cross-restriction such as δ₁+δ₂=0 can prevent those joint endpoints and shrink the set. Sharpness here is relative to the declared component bounds without hidden cross-restrictions.

학부 심화 · 선택Advanced undergraduate · optional

40. 실습 · 가정 범위와 평균 비중을 바꿉니다40. Lab · vary gap assumptions and target weights

d=5,δ∈[−1,2]에서 효과 집합[3,6]을 먼저 손으로 구합니다. 후보 효과4가 속하고7은 속하지 않는지 확인하세요. 다음에는δ 범위를[0,0]으로 좁혀 점5를 얻습니다. 이것은 추세 전제를 강하게 고정했기 때문이며 표본이 무한히 정밀해졌기 때문이 아닙니다.

두 구성요소의 관측 대비·추세 범위·비중을 따로 바꾸어 평균 허용 집합을 살펴봅니다. 비중0인 항도 원 가정 입력은 보존하지만 평균에 기여하지 않습니다. 음의 비중·뒤집힌 범위·총비중0을 거절하는 이유를 설명하고, 결과 보고서에는 관측값과 선언 가정과 식별 범위를 나누어 적습니다.

First compute[3,6] by hand for d=5 and δ∈[−1,2]. Confirm that candidate four belongs and seven does not. Narrow the gap to[0,0] and obtain the point five. The change comes from a stronger premise, not infinitely precise sampling.

Change component contrasts, gap ranges and target weights separately to inspect the aggregate set. A zero-weight component retains its declared inputs but contributes nothing to the mean. Explain rejection of negative weights, reversed bounds or zero total weight. Report observed quantities, declared restrictions and the resulting identification set separately.

학부Undergraduate

41. 실제 국가 · 소득 분류와 기준 대비 변화41. Actual countries · income labels and reference changes

원 World Bank 응답의16국×2018–2023년 기간 기대수명을 사용합니다. 같은 응답의2019 GDP/인이20,000 고정2015USD 이상이면 군1,미만이면군0으로 고정합니다. 이 학습 경계는 World Bank 공식 소득군이 아닙니다.16국 모두 여섯 시점 가용하여 군0은7국,군1은9국입니다.

2019 기준의2020 변화에서 두 군 차이를 계산하되 이를 팬데믹 인과 효과라고 부르지 않습니다.16국의 구성은 고정됐지만 보건 체계·노출·인구 구성·측정 경로는 다를 수 있습니다.2018 사전 대비와2021–2023 관측 경로도 같은16국에서 표시하며 세부 표에는 정확 원 토큰·선택 분모·단위를 남깁니다.

Use period life expectancy for sixteen countries over 2018–2023 from original World Bank responses. Fix group one for 2019 GDP/person at least 20,000 constant-2015 USD and group zero otherwise. This teaching threshold is not the World Bank’s official income classification. All six waves are complete: seven group-zero and nine group-one countries.

Compute the two-group contrast in 2019→2020 changes without calling it a causal pandemic effect. Composition is fixed, but health systems, exposure, populations and measurement can differ. Show 2018 and 2021–2023 observed contrasts for the same countries, retaining raw tokens, denominators and outcome units in the case tables.

학부Undergraduate

42. 실제 개인 · 명목 임금의 균형 추적 집합42. Actual people · a balanced nominal-wage frame

Card 원자료3,613개인의1976·1978·1980 시급을 읽어10,839원행을 보존합니다. 군은 원 nearc4이며 대학 가까이에서 성장했는지에 관한 지시자입니다. 세 시점 시급·군이 모두 가용한2,107명,군0의667명과군1의1,440명을 공통 집합으로 씁니다. 원 결측을0으로 채우지 않습니다.

시급은 센트에서 각 연도의 명목 USD/시간으로 환산한 수준입니다. 같은 사람 집합의 임금 변화 차이지만 대학 근접성의 인과 수익이나 실질 구매력 효과는 아닙니다. 이전 장의 혼인 상태까지 요구한 완전2,105명과 다른 선택임을 분명히 하고,이탈 선택·지역·가정 배경·경력 경로를 별도로 검토합니다.

Read 1976,1978,1980 wages for 3,613 original Card person positions, retaining 10,839 entries. Original nearc 4 records college proximity while growing up. Fix the common frame to 2,107 people complete at every wave:667 in group zero and 1,440 in group one. Missing source values remain missing.

Convert cents to each year’s nominal USD/hour without deflating. The contrast concerns identical selected people, but is neither a causal proximity return nor a real-purchasing-power effect. Explain why this frame differs from the previous chapter’s 2,105 complete people additionally requiring marital status, and consider attrition, region, family background and career paths.

학부Undergraduate

43. 실제 점포 · 384개 완전 짝의 FTE 대비43. Actual stores · FTE contrasts for384 complete pairs

NJ/PA 원410점포×두 파동820행을 보존하고 모든 고용 구성항이 두 파동에서 가용한384짝을 택합니다. 군0 PA는75개,군1 NJ는309개입니다. FTE는 정규직+0.5×시간제+관리자입니다. 임금까지 요구한 이전 장의351짝과 다르고 실제 총인원이나 총근로시간도 아닙니다.

관측 이중차분은11/4 FTE입니다. 이것을 원 논문의 폐업점포0처리·조정 회귀·모든 인과 결론의 재현이라고 말하지 않습니다. 코드407의 원위치42·168을 별도로 유지하며 파동 표지에 정확 면담일을 지어 넣지 않습니다. 아래 실습에서 국가·개인·점포와 기준·비교 시점을 선택해 같은 공통 집합의 평균을 확인하세요.

Retain 820 entries for 410 original NJ/PA store positions and select 384 pairs complete in all staffing components at both waves. Group zero has 75 PA stores and group one 309 NJ stores. FTE=full-time+0.5×part-time+managers. This differs from the previous chapter’s 351 wage-complete pairs and from headcount or total work hours.

The observed contrast is 11/4 FTE. It does not replicate the paper’s zero coding for closures, adjusted regressions or every causal conclusion. Preserve code-407 positions 42/168 as distinct units and do not invent interview dates. In the lab, choose source and recorded baseline/endpoint to inspect means on its fixed full-wave frame.

학부Undergraduate

44. 공개 CSV에서 정확 산술과 R을 다시 실행합니다44. Recompute from public CSVs in exact Python and R

공개 Python은 세 원선택 CSV를 읽고 Fraction으로 군별 평균·관측 변화·이중차분을 계산합니다. 네 파생 CSV에는 선택 요약 3행, 군·시점 평균 22행, 기준 대비 11행, 개체별 기본 변화 2,507행을 남깁니다. 별도 base R로 같은 선택과 수치를 유한 정밀도에서 대조할 수 있습니다.

재현할 때는 먼저 열의 단위·원 결측 표지·고정 집단 정의를 읽습니다. 모든 파동에서 같은 개체 집합을 선택하고 각 군의 분모를 확인한 뒤 평균과 변화의 차이를 직접 계산하세요. Python의 정확 분수와 R의 소수 근사를 비교할 때는 원 토큰과 허용오차도 함께 확인합니다. 이렇게 산술을 재현해도 처리 없는 평행 추세나 표집 대표성이 증명되는 것은 아닙니다.

Public Python reads the three original-selection CSVs and uses Fraction arithmetic for group means, observed changes and DID. Four derived CSVs contain three selection summaries, 22 group/wave means, eleven reference contrasts and 2,507 unit changes. Separate base R lets you compare the same selection and quantities in finite precision.

Begin reproduction by reading units, original missing-value markers and the fixed group definition. Select the same units across all waves, verify each group denominator, then calculate means and differences of changes. Compare Python’s exact fractions with R’s decimal approximations using source tokens and an explicit tolerance. Reproducing this arithmetic does not establish untreated parallel trends or sampling representativeness.

대학원 연결Graduate bridge

45. 심화 · 사건시점 평균의 코호트 구성을 고정합니다45. Extension · cohort composition in event-time averages

사건 후 e 시점 평균은 g+e가 관측 범위 안인 코호트만 사용할 수 있습니다. 긴 노출 기간에서는 늦게 도입한 코호트가 빠져 평균 대상이 바뀝니다. 따라서 e=1과e=5의 차이는 같은 사람들의 효과 변화가 아니라 코호트 구성 변화도 담을 수 있습니다. 공통 관측 지평을 가진 코호트만 고정하는 대안과 그에 따른 표적 축소를 함께 적습니다.

동적 TWFE의 사건시점 계수도 항상 그 시점의 단순 평균 효과는 아닙니다. 서로 다른 코호트·시점 효과의 오염을 다루는 지정 원논문을 읽고,무엇을 식별하는지와 어떤 비음수 비중으로 요약하는지부터 확인합니다. 이 장의 정적 음의 가중치 반례는 그 문제를 이해하는 출발점이며 모든 동적 추정법을 구현한 것은 아닙니다.

An event-time e average can include only cohorts observed at g+e. Long exposure horizons omit late adopters, changing the averaged target. Comparing e=1 and e=5 may mix effect dynamics with cohort composition. An alternative fixes cohorts with a common horizon, but narrows the target; state that tradeoff explicitly.

Dynamic TWFE event coefficients are not automatically simple averages of effects at that relative time. Read the designated author paper on contamination across cohorts and periods, then identify the target and aggregation weights. This chapter’s static negative-weight counterexample is an entry point, not an implementation of every dynamic estimator.

학부Undergraduate

46. 네 칸 회귀와 DID의 관계를 증명합니다46. Prove the saturated four-cell regression identity

절편·집단 G·이후 T·곱 GT를 포함한 회귀는 네 칸마다 자유로운 적합 평균을 하나씩 허용합니다. 각 칸 총질량이 양수면 가중 제곱오차는 그 칸 가중 평균에서 최소입니다. 첫 칸에서 a=μ₀₀,집단 계수는 μ₁₀−μ₀₀,시점 계수는 μ₀₁−μ₀₀를 얻습니다.

마지막 칸의 a+집단+시점+곱 계수가μ₁₁이어야 하므로 곱 계수는μ₁₁−μ₁₀−μ₀₁+μ₀₀=DID입니다. 이것은 관측 적합의 대수입니다. 반복 횡단면인지 패널인지에 따른 표집·분산 조건,잠재 결과의 평행 추세는 별도로 남습니다. 양의 네 칸 없이 이 포화 회귀의 모든 계수를 같은 방식으로 식별할 수는 없습니다.

Y^=a+bGG+bTT+bGTGT\widehat Y=a+b_GG+b_TT+b_{GT}GT
bGT=μ11−μ10−μ01+μ00b_{GT}=\mu_{11}-\mu_{10}-\mu_{01}+\mu_{00}

A regression on an intercept, G, T and GT permits one free fitted mean per cell. With positive mass in every cell, weighted squared error is minimized by that cell’s weighted mean. The first three cells give a=μ₀₀, the group coefficient μ₁₀−μ₀₀ and the time coefficient μ₀₁−μ₀₀.

The final fitted cell must equal μ₁₁, so its interaction coefficient is μ₁₁−μ₁₀−μ₀₁+μ₀₀=DID. This is sample-fitting algebra. Panel versus repeated-cross-section sampling, covariance conditions and potential-outcome parallel trends remain separate. Missing positive-mass cells prevent identification of all saturated coefficients in this way.

Y^=a+bGG+bTT+bGTGT\widehat Y=a+b_GG+b_TT+b_{GT}GT
bGT=μ11−μ10−μ01+μ00b_{GT}=\mu_{11}-\mu_{10}-\mu_{01}+\mu_{00}
학부Undergraduate

47. 세 실제 사례를 같은 보고 형식으로 읽습니다47. Read three actual cases with one reporting discipline

국가 · 기준연도 소득군과 기대수명 변화

보관 World Bank 원응답에서 16국의 2018–2023년 출생 시 기간 기대수명을 다시 읽었습니다. 같은 응답의 2019년 GDP/인이 20,000 고정 2015USD 이상이면 군1, 미만이면 군0으로 고정합니다. 이 경계는 학습을 위해 선언한 분류이며 World Bank의 공식 소득군이나 실제 정책 배정이 아닙니다.

원 기대수명 토큰, 군 분류에 사용한 2019 GDP 토큰, 두 응답 원위치와 국가·연도 키를 96행 CSV에 보존합니다. 16국 모두 여섯 시점의 선택 필드가 가용하며 군0은7국, 군1은9국입니다. 기준은2019년, 기본 비교 시점은2020년입니다. 2018년은 관측 사전 비교점이지 미래 평행 추세의 증명이 아닙니다.

선택 분모 · 모든 비교에서 같은 전 파동 집합
항목개수
원 관측 위치96
원 개체16
전 파동 가용 개체16
전 파동 공통 행96
군0 개체7
군1 개체9
선택 제외 개체0
실제 군·시점 평균 · 소수 근사
관측 시점군개체 수평균 y
20180772.566286
20181982.016802
20190772.808
20191982.279252
20200771.782857
20201981.865561
20210770.256286
20211981.767534
20220772.803714
20221981.672168
20230773.249429
20231982.082472
같은 기준 대비 관측 변화 · 인과 인증·표준오차 없음
관측 시점군0 변화군1 변화관측 이중차분
2018-0.241714-0.26245-0.020736
2019000
2020-1.025143-0.4136910.611452
2021-2.551714-0.5117182.039996
2022-0.004286-0.607084-0.602798
20230.441429-0.19678-0.638209
처음 세 가용 원 개체 · 2019 → 2020
개체 키원 코드군기준 y비교 y관측 변화
AUSAUS182.983.20.3
BRABRA075.80974.506-1.303
CANCAN182.15853781.53-0.628537

표의 관측 이중차분은 군1 기대수명 변화에서 군0 변화를 뺀 값입니다. 연수 차이이며 생존확률이나 백분율이 아닙니다. 같은16국을 계속 쓰므로 여기의 시점별 평균 구성은 같지만, 국가 간 보건·인구·측정·감염 경로가 같다고 가정한 것은 아닙니다.

두 군 모두 같은 세계적 충격에 노출됐을 수 있고 소득군은 무작위 정책 집단이 아닙니다. 따라서 이 그림을 팬데믹의 인과 효과라고 부르지 않습니다. 공통 기준 대비 관측 경로를 탐색하고, 필요한 비교집단과 반사실 추세를 따로 설계하는 사례입니다.

그림은 같은 공통 개체 집합에서 계산한 기준 대비 관측 이중차분입니다. 기준점은0이고 점들은 연결하지 않습니다. 원 응답 보관일2026년10월20일·새 목적 선택일27일·이번 검산일29일은 관측연도와 다릅니다.

개인 · 대학 근접성과 같은 사람의 명목 임금

Card 공개 proximity.zip의 원 nls.dat에서 3,613개인 원위치×1976·1978·1980년 시급을 새로 읽어10,839행을 남깁니다. 군은 원 nearc4 지시자이며 4년제 대학 가까이에서 성장했는지에 관한 기록입니다. 특정 연도 대학이 신설됐다거나 그 대학에 입학했다는 변수를 만들어 넣지 않습니다.

시급 센트를100으로 나눈 각 기록연도의 명목 USD/시간을 씁니다. 원 점(.)은 결측으로 남기고 세 시점 모두 시급과 군이 가용한2,107명만 공통 비교 집합으로 고정합니다. 군0은667명, 군1은1,440명입니다. 앞 장의 혼인 상태까지 요구한2,105명이나 그 장의 불균형8,186행과 선택 규칙이 다릅니다.

선택 분모 · 모든 비교에서 같은 전 파동 집합
항목개수
원 관측 위치10839
원 개체3613
전 파동 가용 개체2107
전 파동 공통 행6321
군0 개체667
군1 개체1440
선택 제외 개체1506
실제 군·시점 평균 · 소수 근사
관측 시점군개체 수평균 y
197606675.286267
1976114406.100618
197806676.778771
1978114407.608785
198006678.204423
1980114409.247458
같은 기준 대비 관측 변화 · 인과 인증·표준오차 없음
관측 시점군0 변화군1 변화관측 이중차분
1976000
19781.4925041.5081670.015663
19802.9181563.146840.228684
처음 세 가용 원 개체 · 1976 → 1980
개체 키원 코드군기준 y비교 y관측 변화
person:1205.487.552.07
person:67156.31.3
person:7815.658.082.43

각 시점에서 동일한2,107명을 쓰므로 표의 평균 변화는 이 선택 집합 안 같은 사람들의 변화입니다. 그렇다고 원3,613명 전체나 모든 청년 남성의 추세를 대표한다는 뜻은 아닙니다. 추적 이탈과 결측의 선택이 남아 있습니다.

군 간 임금 증가 차이를 대학 접근성의 인과 효과라고 읽지 않습니다. 근접성과 가정·지역의 차이, 나이별 경력 경로, 산업 변화가 관련될 수 있습니다. 명목 달러의 변화이므로 물가지수로 실질화한 비교도 아닙니다.1976 기준의1978·1980 대비는 각각 기록된 두 해·네 해 간격이며 한 시점 지표를 매년 성장률이라고 부르지 않습니다.

그림은 같은 공통 개체 집합에서 계산한 기준 대비 관측 이중차분입니다. 기준점은0이고 점들은 연결하지 않습니다. 원 응답 보관일2026년10월20일·새 목적 선택일27일·이번 검산일29일은 관측연도와 다릅니다.

점포 · 두 주의 고용 변화를 두 번 빼기

Card·Krueger의 저자 보관1994년 논문은1992년4월1일 New Jersey의 최저시급이4.25에서5.05USD로 올랐고 Pennsylvania에서는 고정됐다고 설명합니다. 이 역사적 맥락과, 현재 공개 원행에서 어떤 표본을 새로 선택했는지는 구별합니다.

원 NJ/PA ZIP의410점포 두 파동820행에서 정규직·시간제·관리자를 다시 읽습니다. FTE=정규직+0.5×시간제+관리자이며 실제 총인원이나 총근로시간이 아닙니다. 두 파동 모든 구성항이 가용한384점포를 고정합니다. PA 군0은75개, NJ 군1은309개입니다. 임금 필드까지 요구하지 않아 앞 장의351완전 짝과 다릅니다.

선택 분모 · 모든 비교에서 같은 전 파동 집합
항목개수
원 관측 위치820
원 개체410
전 파동 가용 개체384
전 파동 공통 행768
군0 개체75
군1 개체309
선택 제외 개체26
실제 군·시점 평균 · 소수 근사
관측 시점군개체 수평균 y
before07523.38
before130920.430583
after07521.096667
after130920.897249
같은 기준 대비 관측 변화 · 인과 인증·표준오차 없음
관측 시점군0 변화군1 변화관측 이중차분
before000
after-2.2833330.4666672.75
처음 세 가용 원 개체 · before → after
개체 키원 코드군기준 y비교 y관측 변화
store:146040.524-16.5
store:249013.7511.5-2.25
store:350608.510.52

두 번 빼면 출발점의 수준 차이를 지우지만 두 주의 처리 없는 고용 추세가 같았다는 사실까지 만들어 주지는 않습니다. 이 자료에는 두 파동만 있어 여러 사전 시점의 평행성을 직접 살필 수도 없습니다. 지역별 수요·경쟁·면담 방식·파급효과를 별도로 검토해야 합니다.

원 코드407의 원위치42와168은 별도 점포 키로 보존합니다. before/after는 원 파동 표지이며 정확 면담 일자나 동일 노출 일수를 지어 넣지 않습니다. 원 논문의 폐업점포 처리·조정 회귀를 그대로 재현한 값이라고도 주장하지 않습니다. 여기서는 원 구성항의 결측을0으로 바꾸지 않고 완전한384짝의 관측 FTE 이중차분을 계산합니다.

그림은 같은 공통 개체 집합에서 계산한 기준 대비 관측 이중차분입니다. 기준점은0이고 점들은 연결하지 않습니다. 원 응답 보관일2026년10월20일·새 목적 선택일27일·이번 검산일29일은 관측연도와 다릅니다.

Countries · baseline income groups and changes in longevity

Reread period life expectancy at birth for sixteen countries over 2018–2023 from retained World Bank responses. Fix group one when original 2019 GDP per capita is at least 20,000 constant-2015 USD and group zero otherwise. This declared teaching threshold is neither the World Bank’s official income classification nor an observed policy assignment.

The ninety-six-row CSV retains original longevity and classification-GDP tokens, both response positions and country/year keys. Every country has six complete chosen waves: seven in group zero and nine in group one. Use 2019 as reference and 2020 as the default comparison. The observed 2018 contrast does not establish future parallel counterfactual trends.

Selection denominators · identical full-wave frame
ItemCount
Original entries96
Original units16
Full-wave units16
Full-wave entries96
Group-zero units7
Group-one units9
Excluded units0
Actual group/wave means · rounded
Recorded waveGroupUnitsMean y
20180772.566286
20181982.016802
20190772.808
20191982.279252
20200771.782857
20201981.865561
20210770.256286
20211981.767534
20220772.803714
20221981.672168
20230773.249429
20231982.082472
Observed changes from one reference · no causal certification or standard errors
Recorded waveGroup-zero changeGroup-one changeObserved DID
2018-0.241714-0.26245-0.020736
2019000
2020-1.025143-0.4136910.611452
2021-2.551714-0.5117182.039996
2022-0.004286-0.607084-0.602798
20230.441429-0.19678-0.638209
First three available original units · 2019 → 2020
Unit keySource codeGroupReference yComparison yObserved change
AUSAUS182.983.20.3
BRABRA075.80974.506-1.303
CANCAN182.15853781.53-0.628537

Observed DID subtracts group zero’s life-expectancy change from group one’s. Its unit is years, not survival probability or percent. Keeping the same sixteen countries fixes composition across waves, without making health systems, populations, measurement or exposure paths equivalent.

Both groups may face shared global shocks, and income groups are not randomized policy arms. The plot therefore does not identify a pandemic effect. It explores observed paths relative to one reference while leaving comparison-group and counterfactual-trend design explicit.

The unconnected points are observed DID contrasts on one fixed common-unit frame; the reference equals zero. Distinguish observation years from original retention on 20 October 2026, purpose-specific selection on 27 October and this 29 October audit.

People · college proximity and wages for the same people

Newly read wages for 3,613 original person positions at 1976, 1978 and 1980 from nls.dat in Card’s public proximity.zip, retaining 10,839 entries. Groups use original nearc4, recording whether someone grew up near a four-year college. Do not invent college openings or attendance at that college.

Convert original wage cents to nominal USD/hour of each recorded year. Keep original dots missing and fix the common frame to 2,107 people with wages and group available at all three waves: 667 in group zero and 1,440 in group one. This differs from the previous chapter’s 2,105 complete people or 8,186 uneven entries, which additionally required marital status.

Selection denominators · identical full-wave frame
ItemCount
Original entries10839
Original units3613
Full-wave units2107
Full-wave entries6321
Group-zero units667
Group-one units1440
Excluded units1506
Actual group/wave means · rounded
Recorded waveGroupUnitsMean y
197606675.286267
1976114406.100618
197806676.778771
1978114407.608785
198006678.204423
1980114409.247458
Observed changes from one reference · no causal certification or standard errors
Recorded waveGroup-zero changeGroup-one changeObserved DID
1976000
19781.4925041.5081670.015663
19802.9181563.146840.228684
First three available original units · 1976 → 1980
Unit keySource codeGroupReference yComparison yObserved change
person:1205.487.552.07
person:67156.31.3
person:7815.658.082.43

Every wave uses the same 2,107 selected people, so these mean changes concern identical people within that frame. This does not make them representative of all 3,613 original positions or all young men. Attrition and missingness selection remain.

Do not interpret the wage-growth contrast as a causal return to college proximity. Family and regional differences, career paths and industry changes may be related. Values remain nominal rather than price-deflated. Relative to 1976, 1978 and 1980 are recorded two- and four-year gaps; an event index is not an annual growth rate.

The unconnected points are observed DID contrasts on one fixed common-unit frame; the reference equals zero. Distinguish observation years from original retention on 20 October 2026, purpose-specific selection on 27 October and this 29 October audit.

Stores · difference employment changes across two states

The authors’ retained 1994 Card–Krueger paper describes New Jersey’s minimum hourly wage rising from 4.25 to 5.05 USD on 1 April 1992, while Pennsylvania’s remained fixed. Distinguish this historical setting from our newly selected sample of public original records.

Reread full-time, part-time and manager counts at both waves for 410 original NJ/PA store positions, retaining 820 entries. FTE=full-time+0.5×part-time+managers, rather than headcount or total work hours. Fix 384 stores with every staffing component available at both waves: 75 PA/group-zero and 309 NJ/group-one stores. No wage field is required, unlike the preceding chapter’s 351 complete pairs.

Selection denominators · identical full-wave frame
ItemCount
Original entries820
Original units410
Full-wave units384
Full-wave entries768
Group-zero units75
Group-one units309
Excluded units26
Actual group/wave means · rounded
Recorded waveGroupUnitsMean y
before07523.38
before130920.430583
after07521.096667
after130920.897249
Observed changes from one reference · no causal certification or standard errors
Recorded waveGroup-zero changeGroup-one changeObserved DID
before000
after-2.2833330.4666672.75
First three available original units · before → after
Unit keySource codeGroupReference yComparison yObserved change
store:146040.524-16.5
store:249013.7511.5-2.25
store:350608.510.52

Differencing twice removes the initial level gap; it does not create equal untreated employment trends across states. With only two waves, this file cannot directly inspect multiple pre-period trends. Regional demand, competition, interview modes and spillovers need separate consideration.

Preserve code-407 original positions 42 and 168 as distinct stores. Before/after are source wave labels, without invented interview dates or equal exposure durations. This is not a replication of the paper’s closure adjustments or adjusted regressions. Leave missing staffing fields missing and compute the observed FTE contrast for 384 complete pairs.

The unconnected points are observed DID contrasts on one fixed common-unit frame; the reference equals zero. Distinguish observation years from original retention on 20 October 2026, purpose-specific selection on 27 October and this 29 October audit.

학부Undergraduate

48. 설계 질문을 다음 장으로 가져갑니다48. Carry design questions into the next chapter

공식 제작자 영상에서는 두 변화의 차이가 어떤 비교집단을 빌려오는지 찾습니다. 학자 소개와 지정 읽기에서는 실제 자료의 대상·비교군·관측 시점·반사실을 먼저 적는 습관을 확인합니다. 영상 속 사례의 추정값을 이 장의 국가·개인·점포 수치로 가져와 섞지 않습니다.

다음 회귀불연속 장에서는 경계 바로 양쪽을 비교할 때의 연속성·대역폭·조작·표적을 따로 다룹니다. 가까운 경계도,같은 개체의 변화도,두 번 뺀 수치도 그 자체로 인과를 보증하지 않습니다. 어떤 관측 비교에 어떤 반사실 전제를 추가했는지 스스로 설명하는 것이 이번 장의 최종 목표입니다.

Python · R · 원자료·단위·가공·출처

In the official creator video, identify which comparison group supplies the borrowed change. Use the scholar introduction and designated readings to practice writing target, controls, observed timing and the counterfactual first. Do not mix the video case’s estimates with this chapter’s source-data numbers.

The next regression-discontinuity chapter studies continuity, bandwidths, manipulation and targets around a cutoff. A nearby cutoff, within-unit change or double subtraction does not itself guarantee causality. The final goal here is to explain which counterfactual restriction turns a particular observed comparison into an effect claim.

Python · R · Inputs, units, transformations and sources

Python·R 코드 실행 방법Run the Python/R companions

자료 묶음을 풀고 코드와 실제데이터 폴더를 함께 두세요. 터미널에서 코드 파일이 있는 폴더로 이동해 아래 명령을 실행합니다. 코딩이 처음이라면 손계산과 웹 실습을 먼저 하고, 데이터 사이언스 입문에서 코드를 배운 뒤 돌아와도 됩니다.Extract the bundle, keeping the scripts beside the data folder. In a terminal, enter the script folder and run the commands below. Beginners can complete hand calculations and browser labs first, returning to code after studying introductory data science.

python metr11-reproduce.py
Rscript --vanilla --encoding=UTF-8 metr11-reproduce.R

결과 파일은 각 코드에 지정된 결과 폴더에 저장됩니다. CSV 원자료는 덮어쓰지 않습니다.Result files are saved in the result directory specified by each script; the input CSVs are not overwritten.

영상·학자·함께 읽기Videos, thinkers and guided reading

본문의 질문을 넓히는 선택 학습입니다. 영상을 보기 전 질문을 먼저 읽고, 자신의 답을 쓴 뒤 해설과 비교하세요. 자료의 언어·선수 지식은 각 항목에 표시했습니다.Optional extensions to the chapter. Read the question first, write your answer, then compare with the explanation. Language and prerequisites are indicated below.

두 변화의 차이를 눈으로 보기See the difference between two changes

Marginal Revolution University · Josh Angrist · official creator lesson

영상의 비교집단과 처리 없는 추세 가정을 찾고, 네 칸의 평균과 연결하세요.Identify the comparison group and untreated-trend premise, then connect them to four cell means.

교재 안의 YouTube 플레이어에서 재생합니다. 원영상에서 제공하는 자막은 플레이어의 CC·설정에서 선택할 수 있습니다.Playback stays in this chapter’s YouTube player. Available captions can be selected through CC/settings.

보고 읽은 뒤 답하기Respond after watching/reading 두 번 빼면 인과가 자동으로 성립하나요?Does differencing twice automatically identify causality?

생각을 점검하는 해설Check your reasoning

아닙니다. 관측 산술과 반사실 추세에 대한 전제를 구별합니다.No. Separate observed arithmetic from counterfactual-trend premises.

David Card · 노동시장과 실증 설계David Card · labor markets and empirical design

UC Berkeley Research · official biography

공식 연구 소개에서 임금·교육·이민·프로그램 평가를 읽고 같은 설계 질문이 다른 주제에도 쓰이는지 생각해 보세요.Read the official research interests in wages, education, immigration and program evaluation; ask how design questions transfer across topics.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 유명 논문의 자료를 쓰면 같은 표적을 재현한 건가요?Does using a famous paper’s data reproduce its target?

생각을 점검하는 해설Check your reasoning

선택 집합·변수·폐업 처리·가중치가 같아야 하는지 먼저 확인해야 합니다.First compare selection, variables, closure handling and weights.

여러 시점의 군·시점 효과Group-time effects with multiple periods

Brantly Callaway and Pedro H.C. Sant’Anna · official author documentation · designated Background/Group-Time/Aggregation sections

미처리·아직 미처리 비교집단과 ATT(g,t)를 정의한 뒤 어떤 집단에 평균을 내는지 확인하세요.Define never/not-yet-treated comparisons and ATT(g,t), then inspect the population used for aggregation.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 모든 집단을 섞은 TWFE가 항상 단순 ATT인가요?Is pooled TWFE always a simple ATT?

생각을 점검하는 해설Check your reasoning

서로 다른 도입 시점과 효과에서 가중과 비교집단을 따로 살펴야 합니다.With heterogeneous adoption and effects, inspect weights and comparison groups.

사건시점 계수의 오염과 이질성Contamination and heterogeneity in event-time coefficients

Liyang Sun and Sarah Abraham · author paper2020 · designated physical1–3,5–8

같은 사건시점의 계수가 다른 시점·코호트 효과를 섞을 수 있는 이유를 읽고 관측 사전 계수0의 의미를 좁혀 쓰세요.Read why an event-time coefficient may mix other cohort/time effects; state the limits of an observed zero lead.

공식 자료 읽기 ↗Read official resource ↗

보고 읽은 뒤 답하기Respond after watching/reading 사전 계수가0이면 모든 사후 평행 추세가 증명되나요?Does a zero pre-coefficient establish all post-treatment parallel trends?

생각을 점검하는 해설Check your reasoning

아닙니다. 설계·이질성·정밀도·반사실 전제를 추가로 확인해야 합니다.No. Design, heterogeneity, precision and counterfactual restrictions still matter.

연습문제 · 계산에서 설명과 증명까지Exercises: calculation, explanation and proof

먼저 혼자 풀고 풀이를 여세요. 숫자와 함께 단위·포함 기준·계산 이유를 확인하세요.Attempt each problem before opening its solution. Check units, inclusion rules and the reason for the calculation.

1. 네 칸 손계산Four-cell hand calculation

비교군10→12,대상군20→27인 가정 표에서 두 변화·이후 격차·이전 격차·대상군 변화에서 비교군 변화를 뺀 DID를 구하라.

In an assumed table, comparison outcomes are 10→12 and target outcomes 20→27. Compute both changes, before/after level gaps and target-minus-comparison DID.

풀이와 확인할 이유Solution and explanation

비교군 변화는12−10=2,대상군은27−20=7이다. 이후 격차는27−12=15,이전 격차는20−10=10이다.

DID는7−2=5이고 격차 변화15−10도5이다. 결과 단위는 원 점수와 같으며 아직 반사실 추세 가정을 쓰지 않은 관측 대비이다.

d=(27−20)−(12−10)=5d=(27-20)-(12-10)=5

Comparison change is two and target change seven. After/before level gaps are fifteen/ten.

DID is seven minus two=five, also fifteen minus ten. Units remain score points; this is an observed contrast before adding a counterfactual-trend premise.

d=(27−20)−(12−10)=5d=(27-20)-(12-10)=5

2. 구성한 반사실Constructed counterfactual

앞 표에서 비교군의 변화가 대상군의 처리 없는 변화와 같다고 가정한다. 대상군의 처리 없는 이후와 효과를 구하고 무엇이 관측인지 구별하라.

For the preceding table, assume the comparison change equals the target’s untreated change. Construct untreated target post and its effect; separate observation from assumption.

풀이와 확인할 이유Solution and explanation

빌린 변화는2이므로 대상군의 처리 없는 이후는20+2=22이다. 실제 이후27에서 빼면 효과는5이다.

27과20은 대상군 관측 평균이다.22는 평행한 처리 없는 평균 추세를 가정해 구성한 반사실이며 직접 관측값이 아니다.

Borrow change two to construct 20+2=22, then subtract it from observed 27 to obtain effect five.

The target means 20/27 are observed. Constructed 22 relies on untreated mean parallel trends and is not directly observed.

3. 방향 뒤집기Reverse direction

비교군 변화2,대상군 변화7이다. 두 집단 이름을 바꿔 새 대상군 변화에서 새 비교군 변화를 빼면 얼마인가?

Changes are two for comparison and seven for target. Exchange group names and subtract new comparison change from new target change.

풀이와 확인할 이유Solution and explanation

새 대상군은 원 비교군이므로2−7=−5이다. 원 대비5의 음수다.

모순이 아니라 대비 방향이 바뀐 것이다. 어떤 집단을 대상으로 했는지 함께 보고해야 같은 부호를 해석할 수 있다.

The new target is the original comparison, so two minus seven=minus five.

This reverses the contrast rather than contradicting it. Name the target group whenever interpreting the sign.

4. 상수와 단위 변경Shift and rescale

관측 DID가5일 때 모든 결과를100+2Y로 바꾸었다. 새 DID와100+2DID라는 계산이 왜 다른지 설명하라.

Observed DID is five. Transform every outcome to 100+2 Y. Find new DID and explain why 100+2 DID is wrong.

풀이와 확인할 이유Solution and explanation

네 평균의 부호는+−−+여서 공통100의 기여는0이다. 원 DID만2배가 되어10이다.

100+2×5=110은 네 칸의 선형 대비에 상수까지 남겨 놓은 잘못된 식이다. 대비의 전체 원행 가중치 합0을 확인하면 검산할 수 있다.

The four signs cancel the common 100. Only the original contrast scales, so the new DID is ten.

The expression 110 incorrectly retains a common shift. Verify the zero sum of the contrast weights.

5. 증가율과 수준Growth versus levels

10→12와20→27의 증가율 차이와 수준 DID를 각각 구하고 단위를 써라.

For 10→12 and 20→27, compute the difference in growth rates and level DID, with units.

풀이와 확인할 이유Solution and explanation

첫 증가율은2/10=20%,둘째는7/20=35%이다. 차이는15퍼센트포인트다. 수준 DID는7−2=5원 결과 단위다.

15%와15퍼센트포인트를 혼동하지 않고,수준5를 증가율 차이라고 부르지 않는다. 서로 다른 척도에서 평행 추세 전제도 달라질 수 있다.

Growth rates are 20% and 35%, a difference of fifteen percentage points. Level DID is five outcome units.

Distinguish percentage points from percent, and a level contrast from a growth-rate contrast. Their identifying trend restrictions can differ.

6. 가중 평균Weighted cell mean

한 칸의 결과10·20,질량1·3이다. 가중 평균과 동일 관측 평균을 구하라.

One cell has outcomes ten/twenty and masses one/three. Compare its weighted and equal-observation means.

풀이와 확인할 이유Solution and explanation

총질량은4,가중합은70이므로 평균은70/4=35/2=17.5이다. 동일 관측 평균은30/2=15이다.

질량이 큰20에 더 많은 비중을 주어 평균이 더 커진다. 이 작업 질량이 실제 표집 확률이라는 해석은 주어지지 않았다.

μ=10+3(20)1+3=352\mu=\frac{10+3(20)}{1+3}=\frac{35}2

Total mass four and weighted sum seventy give 35/2=17.5. Equal-observation mean is fifteen.

The larger outcome gets more weight. No sampling-probability interpretation was supplied.

μ=10+3(20)1+3=352\mu=\frac{10+3(20)}{1+3}=\frac{35}2

7. 한 칸의 질량 0A zero-mass cell

네 칸 중 비교군 이후 총질량만0이고 나머지 평균은이전 비교10,대상 이전20·이후27이다. 무엇이 정의되는가?

Only comparison/after has zero total mass. Other means are comparison/before ten and target/before 20, after 27. What remains defined?

풀이와 확인할 이유Solution and explanation

대상군의 변화7은 정의된다. 비교군 이후 평균과 비교군 변화는 미정의다. 따라서 네 칸 DID도 미정의다.

미정의 평균을0으로 채워7−(0−10)=17이라고 쓰면 새 평균을 발명한 것이다. 가용한 평균 자체는 보존해야 한다.

Target change seven is defined. Comparison post mean/change are undefined, and so is full DID.

Filling the missing mean with zero to obtain seventeen invents an outcome summary. Preserve the other defined means.

8. 진짜 0A genuine zero

비교군 이후에 결과0·질량2인 관측이 하나 있다. 이 칸 평균을 미정의로 처리해야 하는가?

Comparison/after contains one observation with outcome zero and mass two. Is its mean undefined?

풀이와 확인할 이유Solution and explanation

총질량2가 양수이므로 평균은(2×0)/2=0으로 정의된다.결과0과 질량0은 다른 조건이다.

미정의 여부는 나눌 분모의 가용성과 양성에 달려 있다. 원 결측 결과를 진짜0으로 바꾸어도 된다는 뜻은 아니다.

Positive total mass two gives a defined mean zero. A zero outcome differs from zero mass.

Definition depends on available positive denominator mass. This does not permit recoding a missing outcome as zero.

9. 원행 대비 가중치Original-row contrast weights

각 칸에 동일 질량1의 두 행이 있다. 비교이전·비교이후·대상이전·대상이후 행 각각의 DID 가중치와 전체 합을 구하라.

Each of the four cells has two rows of mass one. Find row DID weights for comparison-before/comparison-after/target-before/target-after and their total.

풀이와 확인할 이유Solution and explanation

각 칸 총질량2라 행별 비중은1/2이다. 부호를 붙이면차례로+1/2,−1/2,−1/2,+1/2이다.

각 값이 두 행씩 있어 전체 합은1−1−1+1=0이다. 대상 이후 가중합1과 대상 이전−1도 직접 확인할 수 있다.

Each cell mass is two, so row shares are one-half. Signed row weights are+1/2,−1/2,−1/2,+1/2.

Two rows per cell give total one−one−one+one=zero. Target-post and target-pre sums are one and minus one.

10. 평균 구성 변화Mean composition

이전에 A=0만,이후 A=0,B=10이 가용하다. 파동 평균 변화와 A의 변화를 구하라.

Before contains only A=0; after contains A=0, B=10. Compare wave-mean change with A’s change.

풀이와 확인할 이유Solution and explanation

파동 평균은0과5라 변화5이다. A의 변화는0이다.

B가 이후에만 들어온 구성이 평균을 바꾸었다. 파동 평균 변화5를 같은 개체의 평균 개선이라고 해석할 수 없다.

Wave means zero/five differ by five, while A changes by zero.

B’s appearance changes composition. The mean change is not average improvement for identical units.

11. 효과와 추세 차이Effect and trend gap

가정 잠재 표에서 비교군은 처리 없이10→12,대상군은 처리 없이20→24이고 실제 이후는27이다. ATT·δ·관측 DID를 구하라.

An assumed potential table has untreated comparison 10→12, untreated target 20→24 and observed treated post 27. Find ATT, gapδ and observed DID.

풀이와 확인할 이유Solution and explanation

대상 효과는27−24=3이다. 처리 없는 변화는 비교군2,대상군4여서 δ=4−2=2이다.

관측 DID는(27−20)−(12−10)=5이며3+2와 같다. 관측5 전체를 효과라고 부르면 추세 차이2까지 효과에 넣게 된다.

d=ATT+δ=3+2=5d=ATT+\delta=3+2=5

ATT is 27−24=three. Untreated changes two/four give gap two.

Observed DID is five=three+two. Calling all five an effect would include the untreated trend gap.

d=ATT+δ=3+2=5d=ATT+\delta=3+2=5

12. 수준 차이와 평행 추세Levels versus parallel trends

처리 없는 비교군은10→12,대상군은20→22이다. 같은 수준인가? 평균 평행 추세인가?

Untreated comparison is 10→12 and target 20→22. Are levels equal? Are mean trends parallel?

풀이와 확인할 이유Solution and explanation

출발 수준과 이후 수준은 각각10점 다르다. 그러나 변화는 둘 다2여서 δ=0이다.

평균 평행 추세는 동일 수준을 요구하지 않는다. 여기서는 잠재 값을 모두 제공한 가정 표라 직접 검사할 수 있으며,실제 숨은 이후를 관측했다는 뜻은 아니다.

Levels differ by ten at both waves, but both changes are two andδ=0.

Mean parallel trends does not require equal levels. Direct checking is possible in this supplied potential table, not automatically in real hidden outcomes.

13. 대상군 효과의 가중 평균Weighted target effects

가정 대상군 두 사람의 효과는2·8,질량은1·3이다. ATT를 구하고 비교군 인원수가 이 평균 계산에 들어가는지 설명하라.

Two assumed target units have effects two/eight and masses one/three. Find ATT; does comparison-group size enter this average?

풀이와 확인할 이유Solution and explanation

ATT는(1×2+3×8)/4=26/4=13/2이다. 분모는 대상군 질량4이다.

비교군은 반사실을 식별하는 근거에 쓰일 수 있지만,가정된 대상군 잠재 효과의 평균에 비교군 인원수를 그대로 더하지는 않는다.

ATT=2+3(8)4=132ATT=\frac{2+3(8)}4=\frac{13}2

ATT is(2+24)/4=13/2, using target mass four.

Controls can support counterfactual identification, but their counts are not added to this supplied target-effect average.

ATT=2+3(8)4=132ATT=\frac{2+3(8)}4=\frac{13}2

14. 빈 대상 조건부 평균Empty target conditional mean

대상군 모든 행의 질량이0이고 비교군 질량은 양수이다. 완전 잠재 표에서 ATT와 DID는 정의되는가?

All target rows have zero mass and comparison mass is positive. Are ATT and DID defined in a complete potential table?

풀이와 확인할 이유Solution and explanation

대상군 평균 효과를 나눌 질량이0이므로 ATT는 미정의다. 관측 대상군 칸의 평균도 미정의여서 DID도 미정의다.

비교군의 가용 평균과 변화는 정의될 수 있다. 미정의를 효과0으로 보고하면 조건부 평균의 대상 질량이 없다는 사실을 숨기게 된다.

Zero target mass makes its conditional average effect undefined. Target cell means and DID are likewise undefined.

Available comparison means and change may remain defined. Undefined does not mean an estimated zero effect.

15. 관측만의 허용 효과Effects allowed by observation alone

관측 DID는5이고 δ에는 아무 제한이 없다. 추가 결과 범위 제한도 없을 때 ATT의 전체 집합과 ATT=−2를 만드는 δ를 구하라.

Observed DID is five andδ is unrestricted, with no additional outcome-support bounds. Find the complete ATT set and a gap producing ATT−2.

풀이와 확인할 이유Solution and explanation

ATT=5−δ여서 δ가 모든 실수를 움직이면 ATT도 실수 전체를 움직인다. ATT=−2에는 δ=7을 택한다.

같은 관측 대비에 다른 숨은 추세가 맞을 수 있다. 이 결론은 미관측 결과의 범위를 추가로 제한하지 않았다는 전제에 의존한다.

ATT=5−δ spans all reals. Choose gap seven to obtain effect minus two.

Different hidden trends fit identical observations. This conclusion assumes no added support restriction on missing outcomes.

16. 사전 효과Anticipatory effect

대상군 평균 사후 효과는5,사전 효과는2,처리 없는 추세 차이는0이다. 관측 DID를 구하고 무사전효과 전제를 잘못 썼을 때의 해석을 설명하라.

Mean post effect is five, anticipatory pre effect two and untreated trend gap zero. Find observed DID and the mistaken no-anticipation interpretation.

풀이와 확인할 이유Solution and explanation

DID=5−2+0=3이다. 사전 관측에 이미 효과2가 들어가 차분에서 빠진다.

3을 그대로 사후 효과라고 부르면 가정한 참효과5보다 작다. 시행일 전이라는 사실만으로 기준 기간이 영향을 받지 않았다고 보장할 수 없다.

d=5−2+0=3d=5-2+0=3

DID=five−two+zero=three, because differencing subtracts the anticipatory pre effect.

Interpreting three as the post effect would understate the supplied five. A pre-implementation date is not automatically unaffected.

d=5−2+0=3d=5-2+0=3

17. 비교군의 파급Spillovers on controls

처리 없는 두 집단 변화는0이다. 대상군의 직접 이후 효과는5,비교군의 정책 파급효과는2라면 관측 DID는 얼마인가?

Both untreated group changes are zero. Direct target post effect is five and policy spillover on controls two. Find observed DID.

풀이와 확인할 이유Solution and explanation

대상군 관측 변화5에서 비교군 관측 변화2를 빼므로3이다. 비교군이 간접 영향을 받지 않는다고 가정했다면5를 기대했을 것이다.

산술3은 정확하지만 무파급 직접 효과5와 다른 대비다. 실제 파급이 발생했는지는 이 가정 예가 아니라 실질 근거로 검토한다.

Observed DID is five minus two=three. With unaffected controls the contrast would be five.

Three is correct arithmetic for a different comparison from the direct effect. Actual spillovers require evidence rather than this assumed example.

18. 평균 조건과 개인 조건Mean versus individual restrictions

가정한 처리 없는 변화가 대상군에서는1·3,비교군에서는0·4이고 동일 질량이다. 평균 평행 추세와 모든 사람의 변화가 같다는 조건을 비교하라.

Assumed untreated changes are target one/three and comparison zero/four, with equal masses. Compare mean parallel trends with equal individual changes.

풀이와 확인할 이유Solution and explanation

두 평균은 모두2라 δ=0이다. 그러나 개별 변화는0·1·3·4로 같지 않다.

평균 조건은 모든 개인의 처리 없는 변화가 동일하다는 조건보다 약하다. 전체 분포의 독립이나 완전한 동질성을 추론할 수 없다.

Both means equal two, soδ=0. Individual changes nevertheless differ.

A mean restriction is weaker than equal untreated change for every unit. It does not imply distributional independence or complete homogeneity.

19. 관측 일치Observed consistency

가정한 한 대상자의 Y₀pre=20,Y₀post=22,Y₁post=27이다. 이전에는 처리 없이,이후에는 실제 처리를 받았다. 관측 두 값과 효과를 쓰라.

An assumed target has Y₀pre 20, Y₀post 22, Y₁post 27, untreated before and treated afterward. State observed outcomes and effect.

풀이와 확인할 이유Solution and explanation

일치성과 무사전효과를 선언하면 관측은20·27이다. 효과는27−22=5이며22는 숨은 이후 반사실이다.

관측 변화7과 효과5는 다르다. 그 사람의 처리 없는 변화2가 관측 변화에 함께 들어 있다.

Under declared consistency and no anticipation, observations are 20/27. Effect is 27−22=five;22 is the hidden post counterfactual.

Observed change seven differs from effect five because it also contains untreated change two.

20. 정확 계산과 인과Exact arithmetic and causality

네 관측 평균과 DID를 정확 분수로 계산했다. 이것이 평행 추세·무간섭·대표성을 확인해 주는지 논하라.

Four observed means and DID were computed in exact fractions. Does this establish parallel trends, no interference or representativeness?

풀이와 확인할 이유Solution and explanation

정확 분수는 선언한 자료와 가중치에 대한 산술을 확인한다. 숨은 처리 없는 추세나 집단 간 파급·표집 대표성을 새로 관측하지는 않는다.

자료 충실성·계산 정확성·실질 식별 전제·추론 조건을 따로 보고해야 한다. 실제 효과 주장에는 관측 대비 이외의 근거가 필요하다.

Exact fractions can establish arithmetic on declared data and weights. They do not reveal missing untreated paths, spillovers or sampling representativeness.

Report data faithfulness, numerical accuracy, identifying premises and inference separately. Actual effect claims require evidence beyond the observed contrast.

21. 처리 경로Adoption paths

E는 시점1,L은 시점2에 도입하며 두 개체를 시점0·1·2에서 관측한다. 흡수되는 처리 D의 두 경로를 쓰라.

E adopts at one and L at two; both are observed at zero, one, two. Write absorbing treatment paths D.

풀이와 확인할 이유Solution and explanation

E는 도입 전0에서0,시점1·2에서1이므로(0,1,1)이다. L은(0,0,1)이다.

도입 뒤 유지되는 경로를 가정했다. 중단·재도입이나 never를 임의의 유한 도입일로 바꾼 경로와 구별해야 한다.

E has(0,1,1) and L(0,0,1).

Treatment remains active after adoption. Distinguish this from interruptions, re-adoption or an invented finite date for never units.

22. 잔차 처리의 직교성Orthogonality of residual treatment

동일 가중치에서 r_D는 E:(−1/6,1/3,−1/6),L:(1/6,−1/3,1/6)이다. 각 개체·시점 합과 제곱합을 구하라.

Under unit weights, r_D is E:(−1/6,1/3,−1/6), L:(1/6,−1/3,1/6). Find unit/time sums and squared sum.

풀이와 확인할 이유Solution and explanation

각 개체 합은0이다. 각 시점에서도 두 값이 서로 반대여서 합0이다. 따라서 개체·시점 지시자에 직교한다.

제곱합은2×(1/36+1/9+1/36)=1/3이다. 양수여서 이 처리 방향을 나누어 계수를 구할 수 있다.

rDTrD=13r_D^{\mathsf T}r_D=\frac13

Each unit sum is zero, and opposing entries give zero at every time. Thus r_D is orthogonal to unit/time indicators.

Squared sum is 2×(1/36+1/9+1/36)=1/3. Its positivity permits a treatment coefficient.

rDTrD=13r_D^{\mathsf T}r_D=\frac13

23. 선형 대비와 처리 가중치Linear and treated weights

앞 문제의 r_D와 제곱합1/3을 사용해 원행 대비 가중치·전체 합·처리 행 합을 구하라.

Use the preceding residuals and denominator 1/3 to find original-row weights, total sum and treated-row sum.

풀이와 확인할 이유Solution and explanation

각 r_D를1/3로 나누면 E:(−1/2,1,−1/2),L:(1/2,−1,1/2)이다. 전체 합은0이다.

처리된 E1·E2·L2의 합은1−1/2+1/2=1이다. 합1이더라도 E2의 음수 때문에 볼록 평균 비중은 아니다.

∑ℓit=0\sum\ell_{it}=0
∑ℓitDit=1\sum\ell_{it}D_{it}=1

Divide by 1/3 to obtain E:(−1/2,1,−1/2), L:(1/2,−1,1/2), summing to zero.

Treated E 1, E 2, L 2 weights sum to one. E 2’s negative weight prevents a convex-average interpretation.

∑ℓit=0\sum\ell_{it}=0
∑ℓitDit=1\sum\ell_{it}D_{it}=1

24. 양의 효과와 음의 TWFEPositive effects,negative TWFE

처리 없는 결과는 모두0,효과는 E1=1,E2=10,L2=1이고 앞 문제 가중치를 쓴다. TWFE와 처리 관측의 동일 비중 평균 효과를 구하라.

Untreated outcomes are zero and effects E 1=1, E 2=10, L 2=1. Using the preceding weights, compare TWFE with the equal-treated-observation effect average.

풀이와 확인할 이유Solution and explanation

TWFE는1−10/2+1/2=−7/2이다. 동일 비중 효과 평균은12/3=4이다.

차이는 가정된 효과 이질성과 음의 처리 가중치에서 온다. 처리 없는 추세는 이 예에서 모두0이므로 그 위반 때문이라고 설명하면 안 된다.

b^=1−12(10)+12=−72\hat b=1-\frac12(10)+\frac12=-\frac72

TWFE is 1−5+1/2=−7/2, while the equally weighted effect average is four.

Heterogeneous effects and a negative treated weight explain the difference; untreated paths are all zero here.

b^=1−12(10)+12=−72\hat b=1-\frac12(10)+\frac12=-\frac72

25. 공통 효과A common effect

처리 없는 Y₀가 개체 상수+공통 시점으로 표현되고 모든 처리 행 효과가τ=2이다. D가 식별될 때 TWFE를 구하라.

Untreated Y₀ is a unit-plus-common-time function and every treated effect isτ=2. Find TWFE when D is identified.

풀이와 확인할 이유Solution and explanation

직교성으로ΣℓY₀=0이다. 처리 가중치 합1을 써서ΣℓDτ=2가 된다. 따라서 b=2이다.

이 결론에는 처리 없는 경로의 공간 제약과 공통 효과가 함께 쓰였다. 단지 패널이라는 배열만으로 얻은 인과 결론은 아니다.

Orthogonality makes the baseline component zero. Treated weights sum to one, so the effect component is two and b=2.

Both the untreated-space restriction and common effect were used; panel formatting alone does not establish them.

26. 남은 기저 성분A remaining baseline component

가정상 Y₀=3D,모든 처리 효과τ=2이고 D는 식별된다. TWFE 분해와 b를 구하라.

Assume Y₀=3 D and every treated effectτ=2, with identified D. Decompose TWFE.

풀이와 확인할 이유Solution and explanation

ΣℓY₀=3ΣℓD=3이고 효과 성분은2이다. b=5이다.

Y₀=3D는 인과적으로 관측된 결과가 아니라 제공한 반사실 가정이다. 공통 효과만으로 b가 그 효과와 같아지지 않음을 보여 준다.

Baseline contribution is three times the treated-weight sum=three; the effect contribution is two, so b=5.

Y₀=3 D is an assumed counterfactual law. A common effect alone does not remove baseline contamination.

27. 공통 도입의 가족Common-adoption family

A의 y는0·2,B는3·5이며 둘 다 시점1에 도입한다. y=a_i+bD+λ1{t=1}의 모든 정확 적합을 구하라.

A has outcomes 0/2 and B 3/5; both adopt at one. Find every exact fit y=a_i+bD+λ1{t=1}.

풀이와 확인할 이유Solution and explanation

이전 행에서 a_A=0,a_B=3이다. 이후 변화는 두 개체 모두2여서 b+λ=2이다.

모든 실수 b에 λ=2−b를 택하면 잔차0이다. D가 시점 열과 같아 별도 b는 미식별이며 b=0은 특정 해일 뿐이다.

(aA,aB,b,λ)=(0,3,b,2−b)(a_A,a_B,b,\lambda)=(0,3,b,2-b)
b∈Rb\in\mathbb R

Pre rows give a_A=0, a_B=3; both changes require b+λ=2.

Every real b with λ=2−b fits exactly. D duplicates the time column, so b=0 is only a particular solution.

(aA,aB,b,λ)=(0,3,b,2−b)(a_A,a_B,b,\lambda)=(0,3,b,2-b)
b∈Rb\in\mathbb R

28. 개체별 상수 추가Add unit-specific constants

같은 가용 행·가중치·식별된 D에서 모든 y에 개체별 상수 c_i를 더한다. TWFE 기울기와 개체 효과는 어떻게 변하는가?

On the same frame/weights with identified D, add a unit-specific constant c_i to every y for that unit. What happens to TWFE and unit effects?

풀이와 확인할 이유Solution and explanation

원행 대비 가중치는 각 개체 지시자에 직교하므로Σ_tℓ_it c_i=0이다. D 계수는 불변이다.

대응 개체 절편은 c_i만큼 이동한다. 한 시점만 바꾸면 이 상쇄가 일반적으로 성립하지 않는다.

Weights are orthogonal to each unit indicator, so the added baseline contributes zero and the D coefficient stays fixed.

Corresponding unit effects shift by c_i. A change at only one wave generally does not cancel.

29. 분모 0의 의미A zero denominator

r_D가 모든 행에서0이다. 분자도0일 때 b=0이라고 나누어 보고할 수 있는가?

Every residualized D is zero, and the numerator is also zero. May the coefficient be reported as zero?

풀이와 확인할 이유Solution and explanation

0/0은 정의되지 않는다. 처리 열이 효과 공간에 흡수되어 관측 예측을 바꾸지 않고 b를 움직일 수 있다.

계수의 전체 가족과 대응 절편 이동을 보고하고 처리 계수는 미식별로 표시해야 한다. 정확한0효과를 추정한 상황과 다르다.

Zero divided by zero is undefined. Effects absorb treatment, allowing coefficient movements without changing predictions.

Report the full family and offsetting effects, and mark treatment unidentified rather than estimated zero.

30. 불균형 투영Unbalanced projection

동일 가중치 관측 A0:y=0,A1:y=2,B1:y=5에 단순 이중 중심화 r=y−개체평균−시점평균+전체평균을 적용하라. 올바른 효과 잔차인가?

Apply naive double demeaning to equally weighted A 0: y=0, A 1: y=2, B 1: y=5. Is it the correct unit/time residual?

풀이와 확인할 이유Solution and explanation

개체 평균은1·5,시점 평균은0·7/2,전체 평균은7/3이다. r=(4/3,−1/6,−7/6)이다.

A 행 합7/6이0이 아니어서 개체 공간에 직교하지 않는다. 실제 효과 공간은 세 관측을 정확 적합할 수 있어 잔차는0이다. 불균형에서 원 평균을 한 번씩 빼는 계산은 다른 연산이다.

43−16=76≠0\frac43-\frac16=\frac76\ne0

Means give r=(4/3,−1/6,−7/6).

A’s residual sum is 7/6, violating orthogonality. The actual unit/time space fits all three observations exactly with zero residual; one-pass raw double demeaning is different.

43−16=76≠0\frac43-\frac16=\frac76\ne0

31. 적격 비교군Eligible controls

E,L,N의 도입은1,2,never이다. E의0→1과0→2에서 never 및 not-yet 비교군을 각각 쓰라.

E, L, N adopt at 1,2, never. List never and not-yet controls for E at 0→1 and 0→2.

풀이와 확인할 이유Solution and explanation

never는 두 비교 모두 N이다. not-yet은0→1에서 G>1인 L과N,0→2에서 G>2인 N만이다.

L이 시점2에 이미 처리되므로 두 번째 비교에서는 처리 없는 변화를 제공하지 못한다. 비교 시점마다 목록과 전제를 다시 확인한다.

Never controls are N at both endpoints. Not-yet controls are L/N at one, but only N at two.

L is treated at two and cannot supply an untreated comparison change then. Recheck lists and premises at each endpoint.

32. 이미 처리된 비교Already treated comparison

처리 없는 결과는0,E의효과는시점1의1에서2의4로 증가,L은1에서0·2에서3이다. L−E 관측변화 대비와 L의 시점2 효과를 구하라.

Untreated outcomes are zero. E’s effects rise 1→4; L moves 0→3. Compare the L-minus-E observed-change contrast with L’s time-two effect.

풀이와 확인할 이유Solution and explanation

L 변화3,E 변화3이라 관측 대비0이다. L의 시점2 잠재 효과는3이다.

E의 자체 효과 증가3을 미처리 추세로 빌려 빼 버렸다. 산술0은 정확하지만 L의 효과3과 다른 대상이다.

Both observed changes equal three, giving contrast zero; L’s actual time-two effect is three.

Subtracting E’s own effect growth treats it as an untreated trend. Correct arithmetic need not identify the intended effect.

33. 불완전 짝An incomplete pair

대상 A는0·1 모두,비교 B는0만 있다. 완전 짝 규칙을 적용하면 각 군의 인원과 DID는 어떠한가?

Target A has times 0/1; comparison B only time 0. Under the complete-pair rule, give retained counts and DID status.

풀이와 확인할 이유Solution and explanation

대상은1명,비교는0명이다. B의 이후를0으로 만들지 않고 짝이 없다는 이유로 비교 집합에서 제외한다.

양의 비교군 질량이 없어 비교 변화와 DID는 미정의다. 대상 변화만 정의될 수 있으며 전체 대비를0으로 보고하지 않는다.

One target and zero controls remain; do not invent B’s post outcome.

Missing comparison mass makes its change and DID undefined, although A’s change may be defined. Undefined is not zero.

34. 시점별 가중치 변경Weights changing across waves

두 사람의 이전 결과0·100,이후2·106이다. 이전 가중치1·1,이후1·3의 평균 차이와 같은1·3을 두 시점에 쓴 평균 변화를 비교하라.

Two units have pre 0/100 and post 2/106. Compare the wave-mean difference using pre weights 1/1 and post 1/3 with mean changes using 1/3 at both waves.

풀이와 확인할 이유Solution and explanation

첫 계산은 이전50,이후(2+318)/4=80이라 차이30이다. 동일 개체 가중치1·3의 평균 변화는(2+18)/4=5이다.

같은1·3으로 이전 평균75를 만들면80−75=5로 대응한다. 시점별 가중치 변화가 구성 비중까지 바꾸므로 짝 비교 실습은 선택 파동의 불일치를 거절한다.

Changing weights gives pre mean 50 and post 80, a difference 30. Constant 1/3 weights give mean change(2+18)/4=five.

Those same weights produce pre 75 and 80−75=five. Changing wave weights also changes composition shares, hence the paired contract rejects it.

35. 사건시점Event time

2019 도입 코호트의2022 관측과2021 도입 코호트의2022 관측 사건시점을 구하고 never의 처리를 설명하라.

Find event times in 2022 for cohorts adopting 2019 and 2021, and explain never units.

풀이와 확인할 이유Solution and explanation

e=t−g에서3과1이다. 같은 달력 연도지만 노출 기간이 다르다.

never에는 유한한 g가 없어 임의의 사건시점을 만들지 않는다. 비교군으로 쓸 수 있다는 사실과 같은 유한 사건 경로가 있다는 주장은 다르다.

Event times are three and one; the same calendar year has different exposure lengths.

Never units lack a finite g. Serving as controls does not supply an invented finite event path.

36. 화면 순서와 연도 간격Display index and year gaps

1976·1978·1980을 x=0·1·2로 그렸다.1976→1980 대비를2년 변화 또는 연간 증가율이라고 부를 수 있는가?

Years 1976/1978/1980 are drawn at x=0/1/2. May 1976→1980 be called a two-year change or annual growth rate?

풀이와 확인할 이유Solution and explanation

실제 간격은4년이고 화면 지표 차이2는 두 기록 파동 간격 수다. 그 자체로2년이 아니다.

수준 차이는 연간 증가율이 아니다. 연환산 비율을 원하면 실제 기간·양의 기준 값·성장 정의를 별도로 사용해야 한다.

The actual gap is four years; index difference two counts recorded-wave steps, not years.

A level difference is not an annual growth rate. Annualization requires actual duration, appropriate values and a declared growth definition.

37. 기준 계수 0A zero reference coefficient

사건 이전 한 기간을 생략하고 그 계수를0으로 정했다. 그 기간의 경제적 효과0을 검정한 것인가?

One pre-event period is omitted and its coefficient normalized to zero. Was a zero economic effect tested?

풀이와 확인할 이유Solution and explanation

아니다. 다른 좌표를 어느 기간 대비로 표현할지 정한 규약이다. 자료에서0을 추정해 확인한 결과가 아니다.

무사전효과는 추가 설계 전제다. 다른 열의 종속 때문에 기준 하나를 빼도 남은 모든 좌표가 식별되는 것은 아니다.

No. This chooses a reference for other coordinates, rather than estimating and testing a zero effect.

No anticipation is a separate premise, and further dependencies can remain after one reference is omitted.

38. 사전 평행의 한계Limits of parallel pretrends

두 집단의 처리 없는 변화가−2→−1에서2로 같았다.0에서 대상군만 처리와 무관한 수요 충격3을 받는 가정이 사전 관측과 모순되는가?

Both untreated groups change by two from−2 to−1. At zero, a target-specific non-treatment demand shock of three occurs. Does this contradict the pre observations?

풀이와 확인할 이유Solution and explanation

모순되지 않는다. 과거 두 시점의 같은 변화는 새로운 사후 차이가 없음을 논리적으로 강제하지 않는다.

사전 자료는 설명 근거가 될 수 있지만 사후 반사실 평행을 직접 관측한 것은 아니다. 충격이 실제 있는지는 추가 자료와 설계 맥락으로 검토한다.

It does not contradict the pre observations; equal past changes do not rule out a new post-period gap.

Pre-data can support plausibility without directly observing post counterfactual trends. Actual shocks need additional evidence.

39. 조건부 겹침Conditional overlap

사전 X가 대상군에서는1뿐,비교군에서는0뿐이다. 비교군 변화 f(0)를 관측했을 때 f(1)을 자료만으로 아는가?

Baseline X equals one only in targets and zero only in controls. Does observing comparison change f(0) reveal f(1) from data alone?

풀이와 확인할 이유Solution and explanation

아니다. 비교군의 X=1 지지가 없어 f(1)은 관측되지 않는다. f가 선형인지·기울기가 무엇인지 등 외삽 전제가 더 필요하다.

회귀가 숫자를 반환해도 그 부분은 추가 모형에 의존한다. 조건부 추세를 대상군 분포로 평균하려면 필요한 비교 지지를 먼저 확인한다.

No. Controls have no support at X=1, so f(1) is unobserved and requires extra extrapolation restrictions.

A numerical regression answer can depend on those restrictions. Check support before averaging conditional comparison trends over targets.

40. 독립 정책 수Independent policy information

두 주의410점포를 두 파동 관측했다. 이것만으로820개의 독립 정책 실험 또는410개의 독립 정책 배정을 주장할 수 있는가?

There are 410 stores in two states at two waves. Does this establish 820 independent experiments or 410 independent policy assignments?

풀이와 확인할 이유Solution and explanation

둘 다 아니다. 같은 점포의 반복 관측과 같은 주의 공통 정책·충격 때문에 의존할 수 있다. 정책 변화는 주 수준에서 비교된다.

유효 추론에는 표집·배정·오차 의존에 대한 별도 논거가 필요하다. 두 정책 집단이라는 정보만으로 특정 표준오차 공식을 여기서 인증하지 않는다.

Neither follows. Repeated stores and shared state policies/shocks can induce dependence; policy variation is at state level.

Inference needs justified sampling, assignment and error dependence. This observation alone certifies no particular standard-error formula.

41. 추세 범위의 효과 집합Effect set from a gap bound

관측 d=5,추세 차이δ∈[−1,2]이고 ATT=d−δ이다. 전체 허용 ATT 집합을 구하라.

Observed d=5,δ∈[−1,2] and ATT=d−δ. Find the complete allowed ATT set.

풀이와 확인할 이유Solution and explanation

δ가 가장 큰2일 때 ATT는 가장 작은3이다. δ가 가장 작은−1일 때 ATT는 가장 큰6이다. 따라서[3,6]이다.

끝점만 보고 방향을 놓치지 말고 ATT=5−δ가 감소함수임을 확인한다. 이는 가정 기반 식별 집합이지 신뢰구간이 아니다.

[d−U,d−L]=[3,6][d-U,d-L]=[3,6]

Maximum gap two gives minimum effect three; minimum gap minus one gives maximum six. The set is[3,6].

Check that 5−δ decreases withδ. This is an assumption-based identification set, not a confidence interval.

[d−U,d−L]=[3,6][d-U,d-L]=[3,6]

42. 끝점과 포함Endpoints and membership

앞 집합[3,6]에 후보3·4·6·7이 속하는지 판단하고 각 가용 후보의δ를 구하라.

For[3,6], check candidates 3,4,6,7 and recoverδ for permitted candidates.

풀이와 확인할 이유Solution and explanation

닫힌 구간이므로3·4·6은 포함되고7은 제외된다. 대응δ는5−3=2,5−4=1,5−6=−1이다.

7이면δ=−2가 되어 선언한[−1,2]를 벗어난다. 후보 포함은 그 가정과 양립한다는 뜻이며 실제 효과일 확률을 계산한 것이 아니다.

Closed endpoints include 3,4,6 but exclude 7. Their gaps are 2,1,−1.

Candidate 7 requires gap−2, outside the restriction. Membership means compatibility, not a probability that the candidate is the actual effect.

43. 음의 관측 대비A negative observed contrast

d=−2,δ∈[−3,1]일 때 ATT 집합을 구하고0 포함 여부를 판단하라.

Find the ATT set for d=−2 andδ∈[−3,1]; does it include zero?

풀이와 확인할 이유Solution and explanation

아래 끝은−2−1=−3,위 끝은−2−(−3)=1이므로[−3,1]이다.0이 포함된다.

δ=−2를 고르면 ATT0이 되어 범위 안 가정과 맞는다. 관측 대비 음수만으로 모든 가용 효과가 음수라고 결론낼 수 없다.

[−2−1,−2+3]=[−3,1][-2-1,-2+3]=[-3,1]

Endpoints are−3 and one, giving[−3,1] and including zero.

Gap−2 yields effect zero. A negative observed contrast does not make every permitted effect negative.

[−2−1,−2+3]=[−3,1][-2-1,-2+3]=[-3,1]

44. 한 점 가정A point restriction

관측 d=5에δ=2를 정확히 가정했다. 허용 ATT와 그것이 완벽한 표본 정밀도를 뜻하는지 설명하라.

With observed d=5, impose exactδ=2. Find the allowed ATT; does a singleton imply perfect sampling precision?

풀이와 확인할 이유Solution and explanation

ATT는5−2=3 한 점이다. 식별 집합이 좁아진 이유는 숨은 추세 차이를 정확히 고정했기 때문이다.

관측 d 자체의 표집 변동을 다루는 별도 추론을 수행한 것은 아니다. 한 점의 가정 기반 표적과 무오차 추정치를 혼동하지 않는다.

The allowed effect is the singleton three, because the hidden gap was fixed exactly.

Sampling variation in observed d has not been analyzed. A point identification restriction does not imply an error-free estimator.

45. 두 집합의 가중 평균Aggregate two intervals

효과 집합[1,3]과[5,9]에 비중1·3을 주고 각 구성요소를 자유롭게 고를 수 있다. 평균의 전체 집합을 구하라.

Effects range freely over[1,3] and[5,9] with weights one/three. Find the complete weighted-average set.

풀이와 확인할 이유Solution and explanation

아래 끝은(1+3×5)/4=4,위 끝은(3+3×9)/4=15/2이다. 따라서[4,15/2]이다.

비음수 비중과 독립적인 구간 선택 때문에 끝점을 동시에 택할 수 있고 그 사이도 연속적으로 얻는다. 결과 단위와 구성요소 표적의 양립도 전제다.

θL=4,θU=152\theta_L=4,\qquad\theta_U=\frac{15}2

The lower endpoint is(1+15)/4=four; the upper is(3+27)/4=15/2. The set is[4,15/2].

Nonnegative weights and freely selectable intervals permit simultaneous extrema and intermediate values. Commensurable units and targets are assumed.

θL=4,θU=152\theta_L=4,\qquad\theta_U=\frac{15}2

46. 교차 제약Cross-component restrictions

d₁=d₂=5,각δ∈[−1,1],동일 평균 비중이다. 개별 범위만 쓸 때와δ₁+δ₂=0도 추가할 때 평균 ATT 집합을 비교하라.

Let d₁=d₂=5, eachδ∈[−1,1], with equal weights. Compare aggregate sets with only individual bounds versus an addedδ₁+δ₂=0.

풀이와 확인할 이유Solution and explanation

개별 범위만 쓰면 각 ATT는[4,6]이고 평균도[4,6]이다. 추가 제약이 있으면 평균 ATT=5−(δ₁+δ₂)/2=5다.

개별 끝점을 마음대로 함께 고를 수 없어서 집합이 좁아진다. 실습의 직사각형 범위 sharp 주장을 교차 제약이 있는 다른 모형에 그대로 옮기면 안 된다.

Individual bounds alone give aggregate[4,6]. The cross-restriction gives mean ATT=5−(δ₁+δ₂)/2=5.

Joint endpoints are no longer freely selectable. Rectangular-bound sharpness does not automatically extend to a different cross-restricted model.

47. 허용 값의 구성Construct every permitted value

d=5,δ∈[−1,2],추가 결과 범위 제한 없음이다. 임의 a∈[3,6]를 실제 가정 잠재 표로 구성해 보라.

With d=5,δ∈[−1,2] and no extra outcome-support bounds, construct an assumed potential table for any a∈[3,6].

풀이와 확인할 이유Solution and explanation

두 집단의 이전은0,비교군 이후도0으로 둔다. 대상군의 처리 없는 이후를δ=5−a,처리 이후를5로 둔다. 두 집단 질량은1이다.

관측 DID는 항상5이고 효과는5−δ=a다. a∈[3,6]이면δ∈[−1,2]여서 모든 허용 a를 만든다. 이 구성은 가정 표이며 실제 숨은 값을 관측한 것은 아니다.

δ=5−a,ATT=a\delta=5-a,\qquad ATT=a

Set both pre outcomes and comparison post to zero. Set untreated target post toδ=5−a and treated post to five, with group masses one.

Observed DID stays five and effect is a. Every a∈[3,6] yields an allowed gap, proving attainability in this assumed table without extra support bounds.

δ=5−a,ATT=a\delta=5-a,\qquad ATT=a

48. 0·음의 비중Zero and negative weights

효과 집합 평균에서 한 항의 비중0,다른 항의 비중2이다. 첫 항을 바꾸면 평균은 변하는가? 두 비중이 모두0 또는 한 항이 음수이면 이 실습은 무엇을 해야 하는가?

One interval component has weight zero and another two. Does changing the zero-weight interval alter the mean? What about all-zero or negative weights?

풀이와 확인할 이유Solution and explanation

비중0인 항은 평균에 기여하지 않아 다른 항의 집합만 남는다. 그러나 입력 자체의 유한성·범위 순서는 여전히 검사한다.

총비중0은 나눌 수 없어 거절한다. 음의 비중은 비음수 표적 평균 계약을 벗어나 거절한다. 음의 TWFE 행 가중치와 이 평균 비중을 구별해야 한다.

The zero-weight component does not affect the aggregate, but its finite inputs and ordered bounds are still validated.

Zero total weight cannot be normalized, and negative weights violate this nonnegative-target contract. Distinguish these weights from possibly negative TWFE contrasts.

49. 실제 국가 선택Actual country selection

실제 선택은16국×2018–2023 여섯 해이고 모두 가용하다. 기준2019,군1은2019 GDP/인20,000 고정2015USD 이상인9국이다. 원행 수·군0 수와 분류 해석을 써라.

Actual selection has 16 countries at six complete years 2018–2023, reference 2019. Nine are group one under the declared 2019 GDP/person threshold 20,000 constant-2015 USD. State entries, group-zero count and classification scope.

풀이와 확인할 이유Solution and explanation

원행은16×6=96,군0은16−9=7국이다. 기대수명 단위는기간 기대수명 연수다.

이 경계는학습용 고정 분류이며 World Bank 공식 소득군이나 실제 정책 배정이 아니다. 같은 국가 구성이어도 두 군의 처리 없는 경로가 같다는 인과 전제는 별도다.

There are 96 entries and seven group-zero countries; outcome units are period-life-expectancy years.

The fixed teaching threshold is neither an official World Bank income class nor an observed policy assignment. Fixed composition does not establish equal counterfactual paths.

50. 실제 개인 분모Actual personal denominators

3,613명×세 파동 원자료에서 전 파동 완전한2,107명,군0의667명·군1의1,440명을 택했다. 원행·선택행·제외명 수와 이전 장2,105명과 다른 이유를 써라.

There are 3,613 original people at three waves;2,107 are complete, including 667/1,440 in groups zero/one. Find original/selected entries, excluded people, and explain the previous chapter’s 2,105.

풀이와 확인할 이유Solution and explanation

원행10,839,선택행6,321,제외명은3,613−2,107=1,506이다. 두 군 합667+1,440=2,107도 검산된다.

앞 장은혼인 상태와 교육까지 포함한 공통 집합이었고 여기서는시급·고정 nearc4만 요구한다. 같은 원자료라는 이유로 가용 집합을 복사하면 안 된다.

Original entries 10,839, selected 6,321 and excluded people 1,506. Group counts sum to 2,107.

The preceding frame additionally required marital status and schooling; this frame requires wages and fixed nearc 4. A shared archive does not imply identical completeness.

51. 실제 점포 분모Actual store denominators

원410점포 두 파동 중 FTE 구성항이 모두 가용한384짝,PA75·NJ309개이다. 선택행·제외점포 수와 코드407의 원위치42·168을 어떻게 처리하는지 써라.

Among 410 original two-wave stores,384 have complete staffing components, with 75 PA and 309 NJ stores. State selected entries, excluded stores and treatment of code 407 positions 42/168.

풀이와 확인할 이유Solution and explanation

선택행은384×2=768,제외점포는26이다.75+309=384로 확인한다.

원위치42와168은 코드가 같아도 별도 점포 키로 남긴다. 임금까지 요구한351짝과 다르며 폐업·구성항 결측을 임의0으로 채우지 않는다.

Selected entries 768 and excluded stores 26;75+309=384.

Keep code 407 positions 42/168 distinct. This differs from 351 wage-complete pairs, and no closure or staffing missingness is silently filled with zero.

52. FTE와 사람 수FTE versus headcount

설명용 점포에 정규직10명·시간제6명·관리자2명이 있다. FTE와 단순 인원 합을 구하고 실제 근로시간이 관측됐는지 설명하라.

An assumed store has 10 full-time, six part-time and two managers. Compute FTE and category headcount; were actual hours observed?

풀이와 확인할 이유Solution and explanation

선언 FTE는10+0.5×6+2=15이다. 구성 항의 단순 합은18이다.

이 가정은 고용 형태별 가중 지표이며 개별 실제 근로시간을 제공하지 않았다.15를 실제 사람15명 또는 관측한 총시간으로 해석하면 안 된다.

Declared FTE is fifteen, while the category-count sum is eighteen.

This weights staffing categories without supplying individual actual work hours. Fifteen is neither a literal headcount nor observed total hours.

53. 실제 FTE 변화 두 번 빼기Actual FTE difference of changes

공통384점포에서 PA 평균 변화−137/60,NJ 변화7/15 FTE이다. NJ−PA 관측 DID와 인과 해석의 한계를 써라.

On the common 384-store frame, PA mean change is−137/60 and NJ 7/15 FTE. Find NJ-minus-PA observed DID and its causal limit.

풀이와 확인할 이유Solution and explanation

7/15−(−137/60)=28/60+137/60=165/60=11/4 FTE이다.

이는 완전 구성항384짝의 관측 대비다. 원 논문의 폐업0처리·조정 회귀를 재현한 값이나 평행 추세가 입증된 정책 효과라고 그대로 이름 붙이지 않는다.

715−(−13760)=114\frac7{15}-\left(-\frac{137}{60}\right)=\frac{11}4

The contrast is 28/60+137/60=165/60=11/4 FTE.

This is the complete-staffing 384-pair observed contrast, not automatic replication of the paper’s closure coding, adjusted regression or a certified policy effect.

715−(−13760)=114\frac7{15}-\left(-\frac{137}{60}\right)=\frac{11}4

54. 둘 다 감소한 국가 대비A country contrast when both decline

실제2019→2020의 군0 기대수명 변화−897/875,군1 변화−744643902439/1800000000000년이다. 두 군의 부호와 DID=7704292682927/12600000000000의 양수 의미를 설명하라.

Actual 2019→2020 life changes are−897/875 for group zero and−744643902439/1800000000000 years for group one. Explain their signs and positive DID 7704292682927/12600000000000.

풀이와 확인할 이유Solution and explanation

두 변화 모두 음수다. 군1 감소가 군0 감소보다 작아 군1−군0 대비가양수 약0.611452년이다.

양수 DID는두 군 모두 기대수명이 올랐다는 뜻이 아니다. 고정 소득군의 관측 감소 차이이며 팬데믹 인과 효과나 생존확률 퍼센트포인트로 읽지 않는다.

Both changes are negative; group one declines less, so the contrast is positive, about 0.611452 years.

Positive DID does not mean both groups improved. It is an observed decline difference, not a pandemic causal effect or survival-probability percentage points.

55. 센트·명목·실질Cents,nominal and real values

원 시급548센트를 USD로 환산하라. 설명용으로 명목 임금10→12,가격지수1→3/2일 때 실질 임금 변화도 구하라.

Convert an original 548-cent hourly wage to USD. In a separate assumed example, nominal wages 10→12 face price index 1→3/2; find the real-wage change.

풀이와 확인할 이유Solution and explanation

548/100=137/25=5.48USD/시간이다. 별도 예의 실질 값은10과12/(3/2)=8이라 변화−2,증가율−20%다.

명목+20%와 실질−20%는 다르다. 실제 개인 선택 CSV는 센트를 명목 USD로만 바꾸며 이 가정 가격지수로 실질화했다고 주장하지 않는다.

548 cents gives 137/25=5.48 USD/hour. Separately, real values ten/eight imply change−2 and growth−20%.

Nominal+20% differs from real−20%. Actual personal CSVs convert cents to nominal dollars without applying this assumed price index.

56. 고정 구성과 선택Fixed composition and selection

전 파동 완전한2,107명만 계속 쓰면 구성 변화와 대표성 문제가 모두 해결되는가?

Does using the same 2,107 full-wave people solve both changing composition and representativeness?

풀이와 확인할 이유Solution and explanation

시점마다 같은 사람을 쓰므로 이 선택 집합 안 평균 변화의 구성은 고정된다. 그러나 원3,613명 중 선택된 이유가 임금 경로와 관련될 수 있다.

따라서 전체 원집단 또는 다른 모집단의 대표성·무시 가능한 이탈을 자동 보장하지 않는다. 원분모·선택분모·결측 규칙과 표적을 함께 적는다.

Composition is fixed within the selected frame, but selection from 3,613 original people may relate to wage paths.

Representativeness and ignorable attrition do not follow. Report original/selected denominators, missingness rules and the target.

57. 재현에 앞서 고정할 것What to fix before reproduction

세 공개 원선택 CSV로 군별 평균 변화와 DID를 재현하려 합니다. 먼저 고정할 개체 집합·집단 정의·원 결측 처리와 분모를 설명하세요. 계산을 재현하면 인과 전제까지 확인한 것인가요?

You will reproduce group mean changes and DID from the three public original-selection CSVs. Explain which units, group definition, missing-value rule and denominators must be fixed first. Does reproducing the calculation establish the causal premises?

풀이와 확인할 이유Solution and explanation

정해 둔 집단 표지를 유지하고 모든 선택 파동의 결과·집단이 가용한 같은 개체 집합을 사용합니다. 원 결측을 실제 결과 0으로 바꾸지 않으며 원 개체 수·선택 수·각 군 분모를 함께 확인합니다. 같은 개체의 가중치를 시점마다 바꾸지 않아야 평균 변화와 두 평균의 차이가 대응합니다.

이 실제 선택에서는 두 군 모두 전 파동의 질량이 양수여서 군별 평균과 DID가 정의됩니다. 재현한 것은 그 선택과 가중치의 관측 산술입니다. 인과 효과로 해석하려면 해당 표적의 처리 없는 평행 추세·일치성·무사전효과·무간섭과 선택 근거를 별도로 정당화해야 합니다.

Keep the declared group labels and use one common set of units with available outcomes and groups at every selected wave. Do not turn original missing values into observed zeros. Check original and selected counts and each group denominator. Constant within-unit weights across waves make mean changes correspond to differences of means.

Both groups have positive mass at every wave in these actual selections, so their means and DID are defined. The reproduced result is the observed arithmetic for that frame and those weights. A causal interpretation separately requires target-specific untreated parallel trends, consistency, no anticipation, no interference and justified selection.

58. 네 칸 포화 회귀 증명Prove the saturated four-cell regression

네 칸 총질량이 양수다. 절편·G·T·GT의 가중 최소제곱에서 GT 계수가 네 칸 DID와 같음을 유도하라.

All four cell masses are positive. Derive the GT coefficient in weighted least squares on an intercept, G, T, GT.

풀이와 확인할 이유Solution and explanation

각 칸의 최선 적합은 가중 평균μ_gt다. 따라서 a=μ₀₀,b_G=μ₁₀−μ₀₀,b_T=μ₀₁−μ₀₀이다.

마지막 칸 a+b_G+b_T+b_GT=μ₁₁에 대입하면 b_GT=μ₁₁−μ₁₀−μ₀₁+μ₀₀다. 산술 동일성이지 잠재 결과 평행 추세의 증명은 아니다.

bGT=μ11−μ10−μ01+μ00b_{GT}=\mu_{11}-\mu_{10}-\mu_{01}+\mu_{00}

Each fitted cell minimizes weighted SSE at its own mean. Thus a=μ₀₀, b_G=μ₁₀−μ₀₀, b_T=μ₀₁−μ₀₀.

The final cell equation yields b_GT=μ₁₁−μ₁₀−μ₀₁+μ₀₀. This fitting identity does not prove counterfactual parallel trends.

bGT=μ11−μ10−μ01+μ00b_{GT}=\mu_{11}-\mu_{10}-\mu_{01}+\mu_{00}

59. 균형 두 파동 FE와 DIDBalanced two-wave FE and DID

모든 개체가 두 파동이고 동일한 양의 개체 가중치를 두 행에 쓴다. D=G×after,양쪽 집단 질량 양수이며 개체·공통 시점 효과를 넣었다. D 기울기가 가중 DID임을 설명하라.

Every unit has two waves with the same positive unit weight on both rows. Let D=G×after with positive mass in both groups and unit/common-time effects. Explain why the D slope equals weighted DID.

풀이와 확인할 이유Solution and explanation

개체 절편을 제거한 목적함수는 각 개체 가중 차분 잔차 제곱합의 공통1/2배다. 차분식은Δy_i=λ+bG_i+잔차다.

이진 G와 절편의 가중 회귀는 두 집단의 가중 평균 변화에 맞으므로 b=평균Δy|G1−평균Δy|G0다. 같은 사람·같은 양의 개체 가중치여서 네 칸 평균의 DID와 같으며 인과 전제는 별도다.

ΔYi=λ+bGi+Δεi\Delta Y_i=\lambda+bG_i+\Delta\varepsilon_i

Profiling unit intercepts gives half the unit-weighted squared differenced residuals. The differenced fit isΔy_i=λ+bG_i+residual.

Weighted regression on intercept/binary G fits group mean changes, so b is their difference. Identical people and wave-invariant unit weights make it the four-cell DID; causal premises remain separate.

ΔYi=λ+bGi+Δεi\Delta Y_i=\lambda+bG_i+\Delta\varepsilon_i

60. 수치에서 연구 보고까지From numbers to a research report

점포 관측 DID11/4 FTE를 한 문단 보고하려 한다. 단위·분모·비교 방향·선택·필요 전제·재현 범위를 포함한 답을 작성하라.

Write a paragraph reporting the store observed DID 11/4 FTE, including units, denominators, direction, selection, premises and reproduction scope.

풀이와 확인할 이유Solution and explanation

원410점포820행에서 두 파동 FTE 구성항이 모두 가용한384점포768행을 고정했다. NJ309점포의 평균 변화에서 PA75점포의 평균 변화를 빼면11/4 FTE이며 같은 단위의 관측 대비다.

인과 정책 효과로 해석하려면 해당 표적의 처리 없는 평행 추세·일치성·무사전효과·무간섭·선택 조건이 필요하다. 폐업0처리·조정 회귀를 복제한 값은 아니며,공개 CSV·정확 Python·base R은 선언 선택의 산술 재현을 제공한다고 범위를 한정한다.

From 410 stores/820 entries, fix 384 complete-staffing pairs/768 entries. Subtract the mean PA 75-store change from the NJ 309-store change to obtain the observed 11/4-FTE contrast.

A causal reading needs target-specific untreated parallel trends, consistency, no anticipation, no interference and selection premises. This does not replicate closure-zero coding or adjusted regressions; public CSVs, exact Python and base R reproduce the declared arithmetic.

자료와 출처Data and sources

실제 자료 사례Actual-data cases · 원자료·단위·결측·변환·출처Inputs, units, missingness, transformations and sources

자료별 확보일·원행 식별·단위·이용 조건은 출처 기록을 확인하세요. 학습 사본은 제공처의 현재 최신 자료와 다를 수 있습니다.Consult each source record for retrieval dates, row identifiers, units and terms. Teaching copies can differ from current provider releases.

자료사전·출처·이용 조건Data dictionary, sources and terms