Aptech Systems, Inc. Worldwide Headquarters
Aptech Systems, Inc.
2350 East Germann Road, Suite #21
Chandler, AZ 85286
Ready to Get Started?
Request Quote & Product Information
Training & Events
Step-by-step, informative lessons for those who want to dive into GAUSS and achieve their goals, fast.
Have a Specific Question?
Q&A: Register and Login
Premier Support and Platinum Premier Support are annually renewable membership programs that provide you with important benefits including technical support, product maintenance, and substantial cost-saving features for your GAUSS System or the GAUSS Engine.
Join our community to see why our users are considered some of the most active and helpful in the industry!
Where to Buy
Recent Tagsapplications character vectors CML CMLMT Constrained Optimization datasets dates dlibrary dllcall error error handling errors Excel FANPACMT file i/o floating network GAUSS Engine graphics GUI hotkeys installation Java API license licensing linux loading data matrices matrix matrix manipulation Maxlik MaxLikMT Memory optimization Optmum output PQG graphics procs RAM random numbers string functions strings structures threading Time Series writing data
Time Series 2.0 MT
Find out more now
Time Series MT 2.1
error G0462 : Negative trim value
I am estimating a linear feedback model with sequential instruments using the GAUSS programme EXPEND from Frank Windmeijer I get the following error message:
D:\gauss\expendnmJKR.prg(99) : error G0462 : Negative trim value Currently active call: makezi  D:\gauss\expendnmJKR.prg Stack trace: makezi called from D:\gauss\expendnmJKR.prg, line 149 makezz called from D:\gauss\expendnmJKR.prg, line 1041
The lines 149 and 1041 in expendnmJKR.prg contain:
149: z = makezi(yx,year,ji); 1041: w = invpd(makezz);
Could anyone tell me, what this error means and how it possibly can be solved?
Thanks in advance
P.S.: GAUSS 13.0.2 build 2940
It appears that on line 99 in file expendnmJKR.prg is a call to the GAUSS function trimr. This function takes 3 inputs. The first argument is a matrix to be "trimmed". The second argument is how many rows to trim, or remove from the top of the matrix. The third argument is how many rows to remove from the bottom of the matrix.
Either the second or third argument to trimr is negative. The error means that the program is trying to remove a negative number of rows from a matrix.
The fastest way to see what is going on is probably to stick a breakpoint on that call to trimr, then run the debugger to that point and see which value is negative. Then you can look backwards and see what went wrong.