did_plot: generate a DiD plot

View source: R/did_plot.R

did_plotR Documentation

generate a DiD plot

Description

generate a DiD plot

Usage

did_plot(data, year, y, group)

Arguments

data

A df of DiD panel data with year, outcome and group indicators

year

character vector specifying the name of the year variable

y

character vector specifying the name of the outcome variable

group

character vector specifying the name of the group variable

Value

a ggplot object


till-tietz/DiDsim documentation built on Feb. 25, 2023, 10:06 p.m.