|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8
6 k7 N" _. |, [* d3 J/ J. do "c:\data\test6" ( x( x; M* x T/ _
. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999) ! n) A+ z/ r, ]) F2 f
. gen diff = le_wm - le_bm - y6 o& q7 `, {
. label var diff "Difference" 0 k; G! f1 U, K* D- e3 Q: ~; ~) V
. . #delimit ; delimiter now ; . line le_wm year, yaxis(1 2) xaxis(1 2) > || line le_bm year > || line diff year > || lfit diff year > ||, > ylabel(0(5)20, axis(2) gmin angle(horizontal)) > ylabel(0 20(10)80, gmax angle(horizontal)) > ytitle("", axis(2)) > xlabel(1918,axis(2)) > xtitle("",axis(2)) > ytitle("Life expectancy at birth (years)") > title("White and black life expectancy") > subtitle("USA, 1900-1999") > note("Source: National Vital Statistics, Vol 50, No. 6" > "(1918 dip caused by 1918 Influenza Pandemic)") > legend(label(1 "White males") label(2 "Black males")) > legend(col(1) pos(3)) > ; invalid label specifier, : 1918: invalid syntax invalid syntax r(198);
$ y Y. ~8 s2 ~6 Z( k# u2 ^. {end of do-file r(198);
; x, s/ R5 q1 p9 e: d: A! b' _1 X! q7 _. do "c:\data\test2" g. s2 G X: F
. sysuse lifeexp, clear (Life expectancy, 1998) - j! n! a. M, `$ I
. gen gnp000 = gnppc/1000 (5 missing values generated)
; {/ n# i2 U+ ]% @5 Z7 i+ |/ \1 V. label var gnp000 "人均GNP, 千元"
3 e2 a) }4 H8 Z: }7 c, m( C. label var lexp "出生期望寿命"
2 e- ]" N V+ F. K" `7 g# W. scatter lexp gnp000, xsca(log) xlabel(.5 2.5 10(10)40, grid) invalid label specifier, : .5 2.5 10(10)40: invalid syntax invalid syntax r(198); . ~3 }( ^3 V. E
end of do-file r(198); .
" f6 ~6 q% a2 h; |: ~2 D# k+ X2 V3 X另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4"
8 R5 m3 ]* x9 C2 q1 W& n( b. sysuse census, clear (1980 Census data by state)
1 S0 s2 R9 c9 q! F- K7 z5 Y. gen drate = divorce / pop18p : u" P* j+ M" C' H# Q3 B+ m0 J. I/ q
. label var drate "离婚率"
+ q; r2 ?9 D% u& f8 n# L. scatter drate medage [w=pop18p] if state!="Nevada", msymbol(Oh) note("Stat > e data excluding Nevada" "Area of symbol proportional to state's populatio > n aged 18+") (analytic weights assumed) (analytic weights assumed) (note: named style p1 not found in class seriesstyle, default attributes used (note: named style circle not found in class markerstyle, default attributes used (note: named style p1 not found in class markerstyle, default attributes used
8 E! v9 Q! F/ W9 W, U4 ~" S. [. end of do-file ! w4 F( v: h% P" A
设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear
0 v+ m {7 J+ n9 C# T& A$ ^. version 6
+ ^4 p# n2 H' `3 @3 j2 s' q. graph x 9 t1 }1 k7 v; Z; N: @1 C
. line x y (note: named style p1 not found in class seriesstyle, default attributes used (note: named style circle not found in class markerstyle, default attributes used (note: named style p1 not found in class markerstyle, default attributes used
4 u: m" C) h$ M) `+ ]另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|