Some time ago Nick Cox helped me with an example of a time series so I had a better view. So far I have worked with complete series but the question arose, can you make a graph with a series that is not complete? that is, for example, start in the third quarter of 1967 but respecting the idea of Nick Cox. I have tried to adjust it but the divisions move which does not allow me to get the result.
I attach the code in case someone can give me some suggestions.
Greetings
I attach the code in case someone can give me some suggestions.
Greetings
Code:
clear
input int date float gnp96
28 3631.6
29 3644.5
30 3672
31 3703.1
32 3757.5
33 3818.3
34 3841.6
35 3861.8
36 3906.8
37 3915
38 3937.8
39 3922.9
40 3922
41 3922.3
42 3961.3
43 3931
44 4027.3
45 4042
46 4064.7
47 4072.9
end
format %tqq date
set scheme s1color
#delimit ;
twoway connected gnp96 date,
xmla(28/47, tlength(0))
xtick(27.5(4)47.5, tlength(*5))
xla(29.5(4)45.5, format(%tqCCYY) tlength(*2) tlcolor(none))
title("")
;
#delimit cr

Comment