Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: Problem creating large matrices

From   "Martin Weiss" <>
To   <>
Subject   st: AW: Problem creating large matrices
Date   Mon, 12 Jul 2010 14:54:16 +0200


Try -mata- then:

beta = J(160000,1,0)
mata des

Why do you need to collect results in a -matrix-? I have never felt the urge
to do that, which could be entirely my fault, but let`s see whether we can
solve your problem more elegantly.


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Achilleas
Gesendet: Montag, 12. Juli 2010 14:42
Betreff: st: Problem creating large matrices

Dear all,

I need to save the results of multiple estimations in a matrix. My
simulation produces 160,000 such results but when I?m trying to create a
matrix containing 160,000 rows with the following command: matrix beta = J
(160000,1,0), I get the following warning : 

Matsize too small
You have attempted to create a matrix with more than 11000 rows or columns
or to fit a model with more than 11000 variables plus ancillary parameters. 
You need to increase matsize using the set matsize command; see help

However, the ?set matsize? command doesn?t accept numbers greater than

Does anyone know if there is another command to create the matrices which
doesn?t fall into the matsize limitations or any other way to circumvent
this problem?

Thanking you in advance,
_____________ - _______________

Achilleas Vassilopoulos

Agricultural University of Athens,
Dept. of Agricultural Economics and Rural Development,
Lab. of Political Economy and European Integration.
Iera Odos 75, 11855, Athens, Greece

Tel: (+30) 210-5294726
Fax: (+30) 2105294786

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index