|
stata8.2画图出现异常,有谁遇到过同样问题么 安装了stata8.0,然后用8.2的exe覆盖 born jan 10 2005 画图出现异常,有些8.0支持的命令不支持了,设置version 8.0也无济于事。 . version 8
: W: k. D0 i" R" |2 V) B. do "c:\data\test6" * t" A [3 i/ d/ S# W! I4 }2 h9 H/ B# E, T
. sysuse uslifeexp, clear (U.S. life expectancy, 1900-1999) ) d; Z0 q' j, X3 z
. gen diff = le_wm - le_bm
% f3 K( T1 @& p6 \. label var diff "Difference" $ m, x: z0 I% Y! q
. . #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); + G* M# A- K: p8 `
end of do-file r(198); - w) j0 r: D: V. O
. do "c:\data\test2"
1 _% T9 e* c; T( N- `$ ?% H. f& }. sysuse lifeexp, clear (Life expectancy, 1998)
; j. ?/ o% W& B9 j- L. gen gnp000 = gnppc/1000 (5 missing values generated) - ^( Y- U& S; ], x8 x5 T- g
. label var gnp000 "人均GNP, 千元"
4 _! @ O1 ?% r2 _7 O% F& ?' `, K. label var lexp "出生期望寿命"
4 L" q- J* e1 u: t7 K: A0 G. 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); + V& g2 s0 _: z4 o7 B) f
end of do-file r(198); . / K! M0 O, d& X+ X# x
另外原来图中的颜色1种是红色,1种是蓝色,现在全变成黑色和白色。 . do "c:\data\test4" 5 v9 H- L1 T6 \7 h* C% K/ h
. sysuse census, clear (1980 Census data by state) 4 E- e" l1 \' R: y' l
. gen drate = divorce / pop18p
% {8 c: U7 u) ~. l3 {. label var drate "离婚率" & [* G3 l! e9 k7 K) t8 W8 q
. 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
r' @' ]% f4 e5 U- T7 @. end of do-file
* a7 g7 F" r" u3 d; W3 B设置version 6也无济于事 . use "C:\DATA\ex1.dta", clear
A3 g; e' {3 n0 w; ]* T: c$ T. version 6 ( ?* p( a6 r% O+ | p2 W5 `6 \
. graph x ; }! W: J" o, a# f. l2 [. }
. 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
! z6 E% R% G8 i& U+ {& |另外,汉字在输出窗口能显示,但是选择的时候就变成乱码。
|