sa_double_did: Compute the time-weighted DID and sDID

View source: R/did-sad.R

sa_double_didR Documentation

Compute the time-weighted DID and sDID

Description

Compute the time-weighted DID and sDID

Usage

sa_double_did(formula, dat_panel, treatment, outcome, option)

Arguments

formula

A formula.

dat_panel

A panel data.

treatment

Name of the treatment variable.

outcome

Name of the outcome variable.

option

A list of options.

Value

A vector of two elements: Time-weighted DID (the first element) and time-weighted sequential DID (second).


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