bcallaway11 / did

Difference in Differences with Multiple Periods, website: https://bcallaway11.github.io/did
288 stars 92 forks source link

Error in BMisc::multiplier_bootstrap(inf.func, biters) : function 'Rcpp_precious_remove' not provided by package 'Rcpp' #129

Closed zianhoo closed 2 years ago

zianhoo commented 2 years ago

After the following command in the "Getting Started" documentation, thesubsequent error message below appeared. Updating of the Rcpp package did not work.

estimate group-time average treatment effects using att_gt method

example_attgt <- att_gt(yname = "Y", tname = "period", idname = "id", gname = "G", xformla = ~X, data = dta)

Error in BMisc::multiplier_bootstrap(inf.func, biters) : function 'Rcpp_precious_remove' not provided by package 'Rcpp'

bcallaway11 commented 2 years ago

I do not get the same error that you get, but in order to run the code there, in order to build the simulated data, you actually need to run the lines

sp <- reset.sim()
dta <- build_sim_dataset(sp)

which is slightly different from what is listed in the documentation...sorry about that.

Brant