I did a search in Stata, in the help stata command on 'did2s' and try to run their first example (see below). I get an error. I am not sure if there is a problem on my end (maybe my STATA 15.1 is too old and doesn't run it because of this) or is the problem something else. The error I get is nboot() not allowed.
The code I run is:
use https://github.com/kylebutts/did2s_s...ata/df_hom.dta, clear
did2s dep_var, first_stage(i.unit i.year) second_stage(i.rel_year_shift) treatment(treat) cluster(state) nboot(10)
I am ultimately trying to find code that allows me to bootstrap with did2s. I've tried other code as well, but I get an error that says repeated time values within panel. When I check 'duplicates list month_year state', I don't find duplicates.
Any help on bootstrapping with did2s would be appreciated.
Related Posts with Examples in did2s stata help command
Variable name and variable label are not shown after the execution of "putexcel" commandMy data Code: * Example generated by -dataex-. To install: ssc install dataex clear input int i…
Stata markdown: can dyndoc create md files instead of html?I'm working in a project with many collaborators, all of which have Stata version 15. We use the dyn…
How to change the data in letters ?Hello. The column I actually have is address1. I want to change the contents of address1 to address2…
Test for endogeneity when using in between-effectsHello everyone, I am trying to run the following model xi: xtivreg sba ids fco vvm nan avi i.year (…
How to control MRTs in PPML Gravity ModelCan i control MRTs in PPML method by estimating exporter, importer and year group dummies by followi…
Subscribe to:
Post Comments (Atom)
0 Response to Examples in did2s stata help command
Post a Comment