differanseiforskjeller
Differanseiforskjeller, also known as difference-in-differences (DiD), is a quasi-experimental method used in econometrics and other fields to estimate the causal effect of a specific intervention or treatment. It is particularly useful when randomized controlled trials are not feasible. The core idea of DiD is to compare the change in outcomes over time for a group that receives the treatment (the treatment group) with the change in outcomes over time for a group that does not receive the treatment (the control group).
The method relies on the assumption of a parallel trends assumption, which states that in the absence
The basic DiD estimator is calculated as: (Y_treatment_post - Y_treatment_pre) - (Y_control_post - Y_control_pre). Where Y represents the outcome