-
Notifications
You must be signed in to change notification settings - Fork 36
Open
Labels
Description
The maximum number of variables that can be passed to gtools commands is the maximum value of matsize
in the user's system.
disp c(matsize)
Will show the user how many variables can be used with gtools. This limitation is due to the way Stata's C API is designed. I use matrices to pass various necessary information to and from C, so this limitation will almost certainly not change unless the Stata C API changes.
So, for example, the following fails in Stata/IC:
. clear
. set obs 10
obs was 0, now 10
. forvalues i = 1/800 {
2. gen x`i' = _n
3. }
. * This is fine
. gisid x*
. gen x801 = 10
. * But now this fails
. gisid x*
# variables > matsize (801 > 800). Tried to run
set matsize 801
but the command failed. Try setting matsize manually.
r(908);