|
|
|
|
|
|
時系列分析ソフトウェア
RATS |
|
4.1 Graphics Examples
Here are some sample programs and the graphs they produce. Click on "View Graph" to see a copy of the corresponding graph.
Simple Time Series Graph
<p>CALENDAR 1922 ALLOCATE 1941:1 OPEN DATA C:\RATS\FOODDATA.RAT DATA(FORMAT=RATS) /
FOODCONS PRRETAIL DISPINC FOODPROD PRFARM GRAPH(KEY=LOLEFT) 2 # PRRETAIL # PRFARM
Stacked Bar Graph
<p>CAL 55 1 4 ALL 1985:4 OPEN DATA C:\RATS\CITISMPL.RAT DATA(FORMAT=RATS) / GCD82 GCN82
GCS82 LABELS GCD82 GCN82 GCS82 # 'Durable' 'Non-Durable' 'Services'
GRAPH(STYLE=STACKEDBAR,HEADER='Major Components of Consumption',$ SUBHEADER='1982
Dollars',KEY=UPLEFT) 3 # GCD82 # GCN82 # GCS82
Two-scale Graph
<p>CAL 1977 1 12 ALL 1994:12 OPEN DATA STARTS.RAT DATA(FORMAT=RATS) / HSF FYMCLE LABEL HSF
FYMCLE # 'Housing Starts' 'Mortgage Rate' GRAPH(PATTERNS,KEY=BELOW,HEADER='Housing Starts
vs Mortgage Rates',STYLE=POLYGONAL,OVERLAY=LINE, MIN=0.0) 2 # HSF / 2 # FYMCLE / 1
Multiple Graphs on a Single Page
<p>GRPARM(BOLD) HLABEL 18 MATRIXLABELS 14 GRPARM AXISLABEL 24 SPGRAPH(header='Impulse
Responses',xpos=both,xlab=xlab,ylab=ylab, $ vlab='Shock to',VFIELDS=NVAR,HFIELDS=NVAR)
SMPL 1 NSTEP DO I=1,NVAR DO J=1,NVAR SET RESP = FIRST(T,(J-1)*NVAR+I) SET STDERR =
SQRT(SECOND(T,(J-1)*NVAR+I)) SET UPPER = RESP + 2 * STDERR SET LOWER = RESP - 2 * STDERR
GRAPH(TICKS,MIN=MINLOWER,MAX=MAXUPPER,number=0) 3 I J # RESP # UPPER / 2 # LOWER / 2 END
DO J END DO I SPGRAPH(DONE)
|
|
|
←RATSのTopページに戻る |
|
|