A bit more deetail: Both var1 and var2 are categorical variables.
Also, where does the stata store the excel file created by using putexcel syntax? I tried by creating an excel file in the desktop and giving the same name in syntax. Syntax seemed to have worked as it says "file xyz.xlsx saved" however I can't find the output in my excel file that I created and there is not any other file of that name in my computer.
I will appreciate your help. Thanks.
Digi