Hi everyone.
I need to one-way tabulate a large number of variables, so I thought I would use a combination of foreach and tabout.
However, some of the variables have value lables, other do not, while some have a combination (e.g. 0 is labeled as "none", but the rest of the numbers are not labeled).
The output for tabout shows the values ONLY if they have labels. Is there a way to make it show labels if they exist and actual values in the absence of labels?
Alternatively, can I do this using a different command? All I want is to have the results of the tabulations (and maybe means and medians for some other variables) in an Excel file and not copy paste hundreds of times.
Thank you so much for any advice.
Laura
I need to one-way tabulate a large number of variables, so I thought I would use a combination of foreach and tabout.
However, some of the variables have value lables, other do not, while some have a combination (e.g. 0 is labeled as "none", but the rest of the numbers are not labeled).
The output for tabout shows the values ONLY if they have labels. Is there a way to make it show labels if they exist and actual values in the absence of labels?
Alternatively, can I do this using a different command? All I want is to have the results of the tabulations (and maybe means and medians for some other variables) in an Excel file and not copy paste hundreds of times.
Thank you so much for any advice.
Laura
Comment