I'm looking to work out the difference in effect (time to surgery) between two patient populations (exposed and unexposed groups) and compare between two countries (i.e. difference in differences).
i appreciate it may be confusing to understand, so here is a basic equation.
time difference between groups between countries = (country1 exposed - country 1 nonexposed) - (country 2 exposed - country 2 nonexposed)
any advice on model, approach, or stata commands would be hugely appreciated. ive been researching this for days and have not had any luck. while some methods allow me to work out the difference, they dont allow any hypothesis testing/provide p-values
i have tried didregress command however surprisingly this only works if you have missing/non-existing data for your outcome of interest prior to the date of the "intervention"
thank you for your time