knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)
library(researchtools)
# data format = long
DT_sales_and_prices

```r

example of (i) calling the function and (ii) the output of the function

results <- estimate_error_correction(y = "sales_log", X = c("own_price_log", "comp_price1_log", "comp_price2_log"), cross_section = "id", data = DT_sales_and_prices) results ``````



JoepvanderPlas/researchtools documentation built on May 22, 2022, 11:42 a.m.