Ronald asked the following question: I am getting the error when using asdoc with tabulate command.
option matrow() not allowed
I asked Ronald to send his dataset for a closer look. Upon inspection, it turned out that Ronald was trying to tabulate values of a string variable, and asdoc had problem with that. As a temporary solution, I suggested the following two steps.
Step 1: Convert the string variable to numeric variable with value labels. The good news is that we can do that in one line of code using the encode command. So assume that the string variable name is country, we shall encode it:
encode country, gen(country_new)
where country_new is a new is a new variable with value labels.
Step 2: Now we can use it with asdoc, so to tabulate it and send the output to MS Word, we type:
asdoc tab country_new, replace