Skip to content

Switch to data.table throughout #51

@zhizhongpu

Description

@zhizhongpu

Goal: revise the package so that it uses data.table as opposed to data.frame consistently, thereby increasing consistency, readability, speed, and address the following issue:

  • currently, if a data.table is passed into the function, an uninvited *_fd column gets appended to the data.table and a warning is raised upon passing the data.table into EventStudy a second time (or more):
In EventStudy(estimator = "OLS", data = merged, outcomevar = y,  :
  Variables starting with gdp_ln_fd should be reserved for usage by eventstudyr.
In EventStudy(estimator = "OLS", data = merged, outcomevar = y,  :
  Variables starting with gdp_ln_lead should be reserved for usage by eventstudyr.
In EventStudy(estimator = "OLS", data = merged, outcomevar = y,  :
  Variables starting with gdp_ln_lag should be reserved for usage by eventstudyr.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions