Stata 11 help for matsize

help matsize -------------------------------------------------------------------------------

Title

[R] matsize -- Set the maximum number of variables in a model

Syntax

set matsize # [, permanently]

where 10 < # < 11000 for Stata/MP and Stata/SE and where 10 < # < 800 for Stata/IC.

Description

set matsize sets the maximum number of variables that can be included in any of Stata's estimation commands.

For Stata/MP and Stata/SE, the default value is 400, but it may be changed upward or downward. The upper limit is 11,000.

For Stata/IC, the initial value is 400, but it may be changed upward or downward. The upper limit is 800.

The command may not be used with Small Stata; matsize is permanently frozen at 100.

Changing matsize has no effect on Mata.

Option

permanently specifies that, in addition to making the change right now, the matsize setting be remembered and become the default setting when you invoke Stata.

Example

. regress y x1-x400 matsize too small You have attempted to create a matrix with more than 400 rows or columns or to fit a model with more than 400 variables plus ancillary parameters. You need to increase matsize by using the set matsize command; see help matsize. r(908);

. set matsize 450

. regress y x1-x400 (output appears)

Also see

Manual: [R] matsize

Help: [D] memory, [R] query


© Copyright 1996–2009 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index