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 file i/o floating network GAUSS Engine graphics GUI hotkeys installation Java API license licensing linux loading data loops 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
Find out more now
Problem regarding using dataloop
Hi I am trying manipulate a gauss data set using dataloop statement.
I am trying to follow the commands listed in the user guide/help file.
It does not seem to be working. Is thare any additional step that I need to follow in order for the dataloop to work?
Below is my code. I would appreciate your help in this regard.
dataset = "testnout"; //Here testnout is a gauss dataset
dataloop ^dataset datasetV2;
make hhsize2 = 1 + 0;
The error message is saying "Operand missing" and "syntax error" pointing to the line "dataloop ^dataset datasetV2;".
Thanks and Regards.
You need to turn on Dataloop Translation before you can use these commands. From the main GAUSS menu, select Tools->Preferences->Compile Options. Then you will see a checkbox (or radio button depending upon platform) next to "Dataloop Translation". Click this to turn Dataloop Translation on.
You will want to turn it back off when you are not using it.
I was just wondering whether there is any limit on the number of cases and variables that can be used with the dataloop command.
I used it successfully to manipulate a gauss data file of 1000 rows and 6 columns.
But now I have been trying to use it with a gauss data file that has 1506 rows and 12 columns using the following command. But it seems that its been going on forever and gauss is ultimately not responding each time I am trying to run the code.
dataset1 = "DataDUST";
/*Use data loop to get only the rows that are valid*/
dataloop ^dataset1 dataset;
select not((PairID .== 355002) .and (Gender .== 1) .and (Day .== 1));
keep PairID Gender MealDurAtHome MealDurOutHome WorkDurAtHome WorkDurOutHome SocialDurAtHome SocialDurOutHome HHChoresBoth ShoppingBoth LeisureBoth Day;
All that I need to do is to create some new variables and put it back into a gauss data set or delete some rows and create a new data set from the old one.
I would appreciate your help in this regard.
Thanks and Regards
There are not any size limitations to dataloop translations. However, prior to GAUSS 14, dataloop translation did not support variable names greater than 8 characters. This is likely the problem.
I think it will be much simpler for you to simply load the data from the dataset with the GAUSS loadd command, delete rows using logical comparisons (i.e. .<, .==, .>, etc) and the GAUSS delif function, then resave the dataset with saved.