ddid_fit: Fit DID and sDID

View source: R/did-std.R

ddid_fitR Documentation

Fit DID and sDID

Description

Fit DID and sDID

Usage

ddid_fit(formula, data, lead = 0)

Arguments

formula

A formula of the form y ~ Gi + It + Gi * It + x1 + x2.

data

An output of did_panel_data().

lead

A value of the lead parameter.

Value

A numeric vector that contains the DID estimate and the sequential DID estimate.


naoki-egami/DIDdesign documentation built on June 4, 2024, 2:59 p.m.