Dear All,
I want to initiate an empty column vector with #rows= number of observations. I permanently set the matsize to the maximum, but still get an error saying that the matzise is too small.
What am I doing wrong?
Thanks,
Sumedha.
I want to initiate an empty column vector with #rows= number of observations. I permanently set the matsize to the maximum, but still get an error saying that the matzise is too small.
Code:
. . *initialize the residual variable . gen n=_n . egen maxn=max(n) . scalar nobs=maxn . set matsize 11000, permanently (set matsize preference recorded) . matrix e2 = J(nobs,1,.) matsize too small You have attempted to create a matrix with too many rows or columns or attempted to fit a model with too many variables. You need to increase matsize; it is currently 11000. Use set matsize; see help matsize. If you are using factor variables and included an interaction that has lots of missing cells, either increase matsize or set emptycells drop to reduce the required matrix size; see help set emptycells. If you are using factor variables, you might have accidentally treated a continuous variable as a categorical, resulting in lots of categories. Use the c. operator on such variables. r(908); end of do-file r(908);
Thanks,
Sumedha.
Comment