-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmata_arimaauto_certification.do
executable file
·62 lines (55 loc) · 1.11 KB
/
mata_arimaauto_certification.do
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
version 15.1
// CERTIFICATION FILE for ARIMAAuto()
discard
clear all
mata: AA = ARIMAAuto()
// yearly data
sysuse uslifeexp.dta
tsset year
mata: AA.put("varlist","le")
mata: AA.put("trace", 2)
mata: AA.put("MS", ("",""))
/* intermediary results */
mata: AA.get("L")
mata: AA.get("T")
mata: AA.get("MS")
/* estimate */
mata: AA.start()
/* final results */
mata: AA.get("L")
mata: AA.get("T")
mata: AA.get("MS")
// quarterly data
sysuse gnp96.dta, clear
/* put variables */
mata: AA.put("varlist","gnp96")
mata: AA.put("trace", 2)
mata: AA.put("MS", ("",""))
/* intermediary results */
mata: AA.get("L")
mata: AA.get("T")
mata: AA.get("MS")
/* estimate */
mata: AA.start()
/* final results */
mata: AA.get("L")
mata: AA.get("T")
mata: AA.get("MS")
// monthly data
webuse air2.dta, clear
/* put variables */
mata: AA.put("varlist","air")
mata: AA.put("ifin","in 1/100")
mata: AA.put("MS", ("","0 1 0 12"))
/* intermediary results */
mata: AA.get("L")
mata: AA.get("T")
mata: AA.get("MS")
/* estimate */
mata: AA.start()
/* final results */
mata: AA.get("L")
mata: AA.get("T")
mata: AA.get("MS")
// CLEAR MEMORY
mata: mata drop AA