Quantcast
Channel: The Stata Blog - Latest Comments
Viewing all articles
Browse latest Browse all 1128

Re: Creating Excel tables with putexcel, part 2: Macro, picture, matrix, and formula expressions

$
0
0

Hi, is there a way to use the svy command for tabulate or proportion based on your examples in this blog post?

When I try your example for tabulate, it says "option matcell() not allowed".
Example:
svy: tab outcome_variable sex, matcell(cellcounts)
matlist cellcounts

I am not super experienced at coding so not sure how to replace cellcounts with something more appropriate for survey designs.

Ultimately I need to create a large Excel file where each sheet is a table with weighted proportions for a variable, split by sex and age group. Thank you in advance!!


Viewing all articles
Browse latest Browse all 1128

Trending Articles