对于一个身高调查数据,现在要做一个直方图,用Do文件编写了如下命令:
histogram x,bin(15) title(Heights of Kids) xtitle(Heights) ytitle(Density)
保存为test.do文件,最后运行不出来,没有做出来直方图。
如果是如下文件:
histogram x,bin(15) title(Heights of Kids) xtitle(Heights) ytitle(Density)///
normal
依然是保存为test.do文件,无法出现正态分布曲线。
请问是怎么回事?
源数据:
112.4 117.2 122.7 123.0 113.0 110.8 118.2 108.2 118.9 118.1 123.5
118.3 120.3 116.2 114.7 119.7 114.8 119.6 113.2 120.0 119.7 116.8
119.8 122.5 119.7 120.7 114.3 122.0 117.0 122.5 119.8 122.9 128.0
121.5 126.1 117.7 124.1 129.3 121.8 112.7 120.2 120.8 126.6 120.0
130.5 120.0 121.5 114.3 124.1 117.2 124.4 116.4 119.0 117.1 114.9
129.1 118.4 113.2 116.0 120.4 112.3 114.9 124.4 112.2 125.2 116.3
125.8 121.0 115.4 121.2 117.9 120.1 118.4 122.8 120.1 112.4 118.5
113.0 120.8 114.8 123.8 119.1 122.8 120.7 117.4 126.2 122.1 125.2
118.0 120.7 116.3 125.1 120.5 114.3 123.1 122.4 110.3 119.3 125.0
111.5 116.8 125.6 123.2 119.5 120.5 127.1 120.6 132.5 116.3 130.8