knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
source(here::here("vignettes/setup_sims.R")) devtools::load_all() # remotes::install_github("pedrohcgs/DRDID") library(BMisc) library(ggplot2) library(gridExtra) ncl <- 10 biters <- 200
```r
time.periods <- 3 reset.sim() te <- 0 nt <- 500 nu <- 500
cond_pretest <- function() { this_data <- build_sim_dataset() res <- conditional_did_pretest(yname="Y", xformla=~X, data=this_data, tname="period", idname="id", gname="G") res$CvMpval }
bout <- pbapply::pbsapply(1:biters, function(b) { cat(paste0("\niter:",b,"\n")) cond_pretest() }, cl=ncl)
mean( bout < .05 )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.