SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 686|回复: 2
打印 上一主题 下一主题

Issue About X12 Model

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2009-9-20 08:24:28 | 只看该作者

Issue About X12 Model

Dear listers

Attached please find my SAS programming for A X12 model  and log. Could you please help fix the issues. Thanks.

NewOccidental

===========================================================================
data Doorcount;
input doorcount@@ ;
month = intnx('month','1Jul1998'd,_n_-1) ;
format month yymmdd10. ;
datalines ;
512120 539866 323879 206539 210805 224957 190984 206227 229770 283933 370180
428822 724675 531423 282590 251708 222655 234922 180316 225340 269849 298611
378608 383853 534533 506123 299371 221932 161498 194287 174983 164032 209285
255125 372356 396496 512111 404243 300123 221932 161498 195292 182974 171984
208714 238112 381171 382792 512021 506276 301072 224652 169112 196365 182625
168231 198217 266047 388689 390000 497327 462159 233866 212808 169622 186761
154902 168231 198217 217646 276887 291279 396841 333695 270000 190000 165727
189000 165507 197486 202832 239451 276877 373597 448032 376403 271026 190000
144866 205384 194931 171128 192235 249488 264218 343000 477603 404598 259858
174524 134870 210843 171098 165000 148000 244213 283214 355646 445758 406827
253933 183127 147000 207584 193000 205442 189860 233892 287263 342144 431370
374343 232542 176446 150000 183654 202700 195613 171542 218889 272513 300730
391720 335182
;
run ;
ods select X12.ModelEstimation.AutoModel.UnitRootTestModel
X12.ModelEstimation.AutoModel.UnitRootTest
X12.ModelEstimation.AutoModel.AutoChoiceModel
X12.ModelEstimation.AutoModel.Best5Model
X12.ModelEstimation.AutoModel.AutomaticModelChoice
X12.ModelEstimation.AutoModel.FinalModelChoice
X12.ModelEstimation.AutoModel.AutomdlNote;
proc x12 data=Doorcount;
var doorcount;
transform function=log;
regression predefined=td;
automdl print=unitroottest unitroottestmdl autochoicemdl best5model;
estimate;
X11;
output out=out a1 a2 a6 b1 c17 c20 d1 d7 d8 d9 d10
d11 d12 d13 d16 d18;
run;
===========================================================================================
105  data Doorcount;
106  input doorcount@@ ;
107  month = intnx('month','1Jul1998'd,_n_-1) ;
108  format month yymmdd10. ;
109  datalines ;

NOTE: SAS went to a new line when INPUT statement reached past the end of a line.
NOTE: The data set WORK.DOORCOUNT has 134 observations and 2 variables.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


123  ;
124  run ;
125  ods select X12.ModelEstimation.AutoModel.UnitRootTestModel
126  X12.ModelEstimation.AutoModel.UnitRootTest
127  X12.ModelEstimation.AutoModel.AutoChoiceModel
128  X12.ModelEstimation.AutoModel.Best5Model
129  X12.ModelEstimation.AutoModel.AutomaticModelChoice
130  X12.ModelEstimation.AutoModel.FinalModelChoice
131  X12.ModelEstimation.AutoModel.AutomdlNote;
132  proc x12 data=Doorcount;
                            -
                            22
                            76
ERROR 22-322: Syntax error, expecting one of the following: (, DATA, DATE, DATEVAR, INTERVAL,
              NOPRINT, NOTRIMMISS, SEASONS, SPAN, START, STARTDATE.
ERROR 76-322: Syntax error, statement will be ignored.
133  var doorcount;
134  transform function=log;
135  regression predefined=td;
136  automdl print=unitroottest unitroottestmdl autochoicemdl best5model;
137  estimate;
138  X11;
139  output out=out a1 a2 a6 b1 c17 c20 d1 d7 d8 d9 d10
140  d11 d12 d13 d16 d18;
141  run;

NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.OUT may be incomplete.  When this step was stopped there were 0
         observations and 0 variables.
WARNING: Data set WORK.OUT was not replaced because this step was stopped.
NOTE: PROCEDURE X12 used (Total process time):
      real time           0.01 seconds
      cpu time            0.01 seconds

WARNING: Output 'X12.ModelEstimation.AutoModel.AutomdlNote' was not created.  Make sure that the
         output object name, label, or path is spelled correctly.  Also, verify that the
         appropriate procedure options are used to produce the requested output object.  For
         example, verify that the NOPRINT option is not used.
WARNING: Output 'X12.ModelEstimation.AutoModel.FinalModelChoice' was not created.  Make sure that
         the output object name, label, or path is spelled correctly.  Also, verify that the
         appropriate procedure options are used to produce the requested output object.  For
         example, verify that the NOPRINT option is not used.
WARNING: Output 'X12.ModelEstimation.AutoModel.AutomaticModelChoice' was not created.  Make sure
         that the output object name, label, or path is spelled correctly.  Also, verify that the
         appropriate procedure options are used to produce the requested output object.  For
         example, verify that the NOPRINT option is not used.
WARNING: Output 'X12.ModelEstimation.AutoModel.Best5Model' was not created.  Make sure that the
         output object name, label, or path is spelled correctly.  Also, verify that the
         appropriate procedure options are used to produce the requested output object.  For
         example, verify that the NOPRINT option is not used.
WARNING: Output 'X12.ModelEstimation.AutoModel.AutoChoiceModel' was not created.  Make sure that
         the output object name, label, or path is spelled correctly.  Also, verify that the
         appropriate procedure options are used to produce the requested output object.  For
         example, verify that the NOPRINT option is not used.
WARNING: Output 'X12.ModelEstimation.AutoModel.UnitRootTest' was not created.  Make sure that the
         output object name, label, or path is spelled correctly.  Also, verify that the
         appropriate procedure options are used to produce the requested output object.  For
         example, verify that the NOPRINT option is not used.
WARNING: Output 'X12.ModelEstimation.AutoModel.UnitRootTestModel' was not created.  Make sure
         that the output object name, label, or path is spelled correctly.  Also, verify that the
         appropriate procedure options are used to produce the requested output object.  For
         example, verify that the NOPRINT option is not used.
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2009-9-20 22:08:20 | 只看该作者

Re: Issue About X12 Model

死猪头
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
板凳
 楼主| 发表于 2009-9-21 08:35:52 | 只看该作者

Re: Issue About X12 Model

Could you please advise why I should choose Month not doorcount as Var as you sugested? FYI, what I  am analyzing is doorcount not month.

Thanks!

NewOccidental
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2026-2-5 23:18 , Processed in 0.068281 second(s), 21 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表