dagga
1.stata8.0中有没有类似于SPSS中count的命令。
比如说有x1,x2,x3三个分类变量(赋值0-4),我想清点一下每条记录中所赋值的个数,再生成一个新的变量,stata8.0中该用什么命令呢?
2.stata8.0中作饼图,变量和记录如下:
a b o ab area
100 120 240 75 1
80 70 200 50 2
我用了如下命令:
graph a b o ab if area==1,pie
stata反应如下:
agraph_g.new b o ab if area==1,pie: class member function not found
r(4023);
请大家帮我解决这两个问题,谢谢!!!