加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

Tips 85:limits数据变量各种上限

(2012-03-26 23:28:48)
标签:

上限

stata

财经

分类: 命令

【问题】     

这几天,舍友一直跑几个小时的程序,老是出现一些莫名奇妙的错误。

命令没有问题,循环没有问题,各种都对着呢,但就是出问题。

后来发现,tempfile超出限制。

如何查出stata各种东西的上限呢?

【方法】

help limits

                                                                                                                                       Small       Stata/IC       Stata/SE
----------------------------------------------------------------------------------------------

   # of observations  (1)                 1,200  2,147,483,647  2,147,483,647
   # of variables                            99          2,047         32,767
   width of a dataset in bytes              800         24,564        393,192

   value of matsize                         100            800         11,000

   # characters in a command              8,697        165,216      1,081,527
   # options for a command                   70             70             70

   # of elements in a numlist             1,600          1,600          1,600

   # of interacted continuous variables                               8
   # of interacted factor variables                                   8

   # of unique time-series operators in
       a command                            100            100            100
   # seasonal suboperators per time-series
       operator                                                       8

   # of dyadic operators in an expression    66            800            800
   # of numeric literals in an expression    50            300            300
   # of string literals in an expression    256            512            512
   length of string in string expression    244            244            244
   # of sum functions in an expression                                5
   # of pairs of nested parentheses         249            249            249

   # of characters in a macro             8,681        165,200      1,081,511

   # of nested do-files                      64             64             64

   # of lines in a program                3,500          3,500          3,500
   # of characters in a program         135,600        135,600        135,600

   length of a variable name                 32             32             32
   length of ado-command name                32             32             32
   length of a global macro name             32             32             32
   length of a local macro name              31             31             31

   length of a string variable              244            244            244

   anova
       # of variables in one anova term                               8
       # of terms in the repeated() option                            4

   char
       length of one characteristic       8,681         67,784         67,784

   constraint
       # of constraints                   1,999          1,999          1,999

   encode and decode
       # of unique values                 1,000         65,536         65,536

   _estimates hold
       # of stored estimation results       300            300            300

   estimates store
       # of stored estimation results       300            300            300

   exlogistic and expoisson
       maximum memory specification in      2gb            2gb            2gb
       memory(#)

   grmeanby
       # of unique values in varlist       _N/2           _N/2           _N/2

   graph twoway
       # of variables in a plot             100            100            100
       # of styles in an option's stylelist  20             20             20

   impute
       # of variables in varlist             31             31             31

   infile
       record length without dictionary    none           none           none
       record length with a dictionary  524,275        524,275        524,275

   infix
       record length with a dictionary  524,275        524,275        524,275

   label
       length of dataset label               80             80             80
       length of variable label              80             80             80
       length of value label string      32,000         32,000         32,000
       length of name of value label         32             32             32
       # of codings within one
           value label                    1,000         65,536         65,536

   label language
       # of different languages             100            100            100

   macros
       # of nested macros                    20             20             20

   manova
       # of variables in single manova term                           8

   matrix  (2)
       dimension of single matrix       40 x 40      800 x 800  11,000x11,000

   maximize options
       iterate() maximum                 16,000         16,000         16,000

   mprobit
       # of categories in a depvar           30             30             30

   net (also see usersite)
       # of description lines in .pkg file  100            100            100

   nlogit and nlogittree
       # of levels in model                                           8

   notes
       length of one note                 8,681         67,784         67,784
       # of notes attached to _dta        9,999          9,999          9,999
       # of notes attached to each
           variable                       9,999          9,999          9,999

   numlist
       # of elements in the numeric list  1,600          1,600          1,600

   reg3, sureg, and other system estimators
       # of equations                        40            800         11,000

   set adosize
       memory ado-files may consume       1000K          1000K          1000K

   set scrollbufsize
       memory for Results window buffer   2000K          2000K          2000k

   slogit
       # of categories in a depvar           30             30             30

   snapshot
       length of label                       80             80             80
       # of saved snapshots               1,000          1,000          1,000

   stcox
       # of variables in strata() option                              5

   stcurve
       # of curves plotted on the same graph 10             10             10

   table and tabdisp
       # of by variables                                              4
       # of margins, i.e., sum of rows,
         columns, supercolumns, and
         by groups                        3,000          3,000          3,000

   tabulate 
       # of rows in one-way table           500          3,000         12,000
       # of rows & cols in two-way table 160x20         300x20       1,200x80

   tabulate, summarize (see tabsum)
       # of cells (rows X cols)             375            375            375

   xt estimation commands (e.g., xtgee,
       xtgls, xtpoisson, xtprobit, xtreg
       with mle option, and xtpcse when
       neither option hetonly nor option
       independent are specified)

       # of time periods within panel        40            800         11,000
       # of integration points accepted      40            800         11,000
         by intpoints(#)                    195            195            195

0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有