merge_treatment: Merge treatment onto county-level sales data.

Description Usage Arguments

View source: R/merge_treatment.R

Description

This function takes a county-level dataset and merges another dataset with treatment information onto the first dataset.

Usage

1
2
merge_treatment(original_data, treatment_data_path, time = "calendar",
  merge_by)

Arguments

original_data

The panel data (without treatment status) (data.table)

treatment_data_path

The path to the treatment data (character)

time

Either "calendar" or "event" (character)

merge_by

A vector of the names of the units to merge original_data and the treatment data by (character)

allow by to be either "calendar" or "event" merge_by = c("fips_county", "fips_state")


johnnybonney/sales.taxes documentation built on Dec. 7, 2018, 8:01 a.m.