knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(researchtools)
# data format = long
DT_sales_and_prices
```r
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 ``````
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.