Home  /  Products  /  Detailed size limits
Order

Detailed size limits

Maximum size limits Stata/BE Stata/SE Stata/MP
# of observations (1) 2,147,483,619 2,147,483,619 1,099,511,627,775
# of variables 2,048 32,767 120,000
# of RHS variables 798 10,998 65,532
# characters in a command
# options for a command
264,408
256
4,227,159
256
4,227,159
256
# of elements in a numlist 2,500 2,500 2,500
# of interacted continuous variables
# of interacted factor variables
64
8
64
8
64
8
# of unique time-series operators in a command
# seasonal suboperators per time-series operator
100
8
100
8
100
8
# of dyadic operators in an expression
# of numeric literals in an expression
# of string literals in an expression
length of string in string expression (bytes)
# of sum functions in an expression
# of pairs of nested parentheses
800
300
512
2,000,000,000
5
249
800
300
512
2,000,000,000
5
249
800
300
512
2,000,000,000
5
249
# of characters in a macro (2) 264,392 4,227,143 15,480,200
# of nested do-files 64 64 64
# of lines in a program
# of bytes in a program
3,500
135,600
3,500
135,600
3,500
135,600
length of a variable name (characters)
length of ado-command name (characters)
length of a global macro name (characters)
length of a local macro name (characters)
length of a str# variable (bytes)
length of a strL variable (bytes)
32
32
32
31
2,045
2,000,000,000
32
32
32
31
2,045
2,000,000,000
32
32
32
31
2,045
2,000,000,000
anova
# of variables in one anova term
# of terms in the repeated() option
 
8
4
 
8
4
 
8
4
char
length of one characteristic (bytes)
 
67,784
 
67,784
 
67,784
constraint
# of constraints
 
1,999
 
1,999
 
1,999
encode and decode
# of unique values
 
65,536
 
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 memory(#)
 
2gb
 
2gb
 
2gb
frames
# of frames
 
100
 
100
 
100
grmeanby
# of unique values in varlist
 
_N/2
 
_N/2
 
_N/2
graph
minimum graph size (inches)
maximum graph size (inches)
 
1
100
 
1
100
 
1
100
graph twoway
# of variables in a plot
# of styles in an option's stylelist
 
100
20
 
100
20
 
100
20
import sas
# of variables
 
2,048
 
32,766
 
32,766
import spss
# of variables
 
2,048
 
32,766
 
32,766
impute
# of variables in varlist
 
31
 
31
 
31
infile
record length without dictionary
record length with a dictionary
 
none
524,275
 
none
524,275
 
none
524,275
infix
record length with a dictionary
 
524,275
 
524,275
 
524,275
label
length of dataset label (characters)
length of variable label (characters)
length of value label string (bytes)
length of name of value label (characters)
# of codings within one value label
 
80
80
32,000
32
65,536
 
80
80
32,000
32
65,536
 
80
80
32,000
32
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
 
8
 
8
matrix (3)
dimension of single matrix
 
800x800
 
11,000x11,000
 
65,534x65,534
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
 
8
 
8
notes
length of one note (bytes)
# of notes attached to _dta
# of notes attached to each variable
 
67,784
9,999
9,999
 
67,784
9,999
9,999
 
67,784
9,999
9,999
numlist
# of elements in the numeric list
 
2,500
 
2,500
 
2,500
_pctile
# of percentiles
 
4,096
 
4,096
 
4,096
putdocx and putpdf
# of tables added to a document
 
500
 
500
 
500
reg3, sureg, and other system estimators
# of equations
 
800
 
11,000
 
65,534
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 (characters)
# of saved snapshots
 
80
1,000
 
80
1,000
 
80
1,000
stcox
# of variables in strata() option
 
5
 
5
 
5
stcurve
# of curves plotted on the same graph
 
20
 
20
 
20
tabdisp
# of by variables
# of margins, i.e., sum of rows, columns, supercolumns, and by groups
 
4
3,000
 
4
3,000
 
4
3,000
tabulate
# of rows in one-way table
# of rows & cols in two-way table
 
3,000
300x20
 
12,000
1,200x80
 
12,000
1,200x80
tabulate, summarize (see tabsum)
# of cells (rows X cols)
 
375
 
375
 
375
teffects
# of treatments
 
20
 
20
 
20
xt estimation commands
(e.g., xtgee, xtgls, xtpoisson, xtprobit, xtreg
with mle option, and xtpcse when neither
option hetonly nor option independent is
specified)

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

Notes
  1. For Stata/MP, the maximum number of observations is 1,099,511,627,775, and for Stata/SE, the maximum number is 2,147,483,619. In practice, both editions are limited by memory.
  2. The maximum length of the contents of a macro is fixed in Stata/BE and settable in Stata/SE and Stata/MP. The currently set maximum length is recorded in c(macrolen); type display c(macrolen). The maximum length can be changed with set maxvar. If you set maxvar to a larger value, the maximum length increases; if you set maxvar to a smaller value, the maximum length decreases. The relationship between them is maximum_length = 129*maxvar + 200.
  3. In Mata, matrices are limited only by the amount of memory on your computer.
Determining which edition of Stata you are running

Type
           . about
The response will be Stata/MP, Stata/SE, or Stata/BE. Other information is also shown, including your serial number.