qed_did: qed_did: Difference in Difference Designs

Description Usage Arguments Details Value See Also Examples

View source: R/qed_did.R

Description

text

Usage

1
qed_did(y, x, event_time, treated_id, treated, df)

Arguments

y

string, name of the outcome variable in dataframe

x

string, name of the time variable

event_time

numeric, when the event occurred

treated_id

string, name of the identifying variable in df

treated

vector of the same type as the identifier variable, indicates which identifiers were treated by the event

df

a dataframe or tibble

Details

text

Value

object of type qed_did

See Also

lm

Examples

1
2
3
4
5
6
## Not run: 
data(banks)
fit <- qed_did("num_banks_in_business", "year", 1930,  "bank_district", "6th district", df = banks)
summary(fit)

## End(Not run)

marginal-latte/QEDinfR documentation built on Dec. 23, 2021, 10:15 p.m.