Hi all,
I have a large set of categorical data that I need moved to excel. I also need to sort the data by specific criteria - whether a state has adopted a certain policy - which I'll call var1. For each var2, var3, ... , var n, I want to write something similar to
Because the data are categorical, I'm not interested in mean, sd, etc., only the number and proportion of responses for each category. But when I write
the console tells me "weights not allowed." If I add parentheses and write
the console says "bysort not found."
Any idea what's going on here?
I have a large set of categorical data that I need moved to excel. I also need to sort the data by specific criteria - whether a state has adopted a certain policy - which I'll call var1. For each var2, var3, ... , var n, I want to write something similar to
Code:
bysort var1: tab var2 [aw = weight]
Code:
putexcel A1 = bysort var1: tab var2 [aw = weight]
Code:
putexcel A1 = (bysort var1: tab var2 [aw = weight])
Any idea what's going on here?

Comment