Aptech Systems, Inc. Worldwide Headquarters
Mailing Address:
PO Box 250
Black Diamond, WA 98010 USAStreet Address:
30741 Third Avenue #160
Black Diamond, WA 98010 USAPhone: 360.886.7100
FAX: 360.886.8922Ready to Get Started?
For Pricing and Distribution
Industry Solutions
Products
Resources
Support
Training & Events
Want more guidance while learning about the full functionality of GAUSS and its capabilities? Get in touch for in-person training or browse additional references below.
Tutorials
Step-by-step, informative lessons for those who want to dive into GAUSS and achieve their goals, fast.
Have a Specific Question?
Get a real answer from a real person
- Need Support?
Q&A: Register and Login
Support Plans
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.
User Forums
Join our community to see why our users are considered some of the most active and helpful in the industry!
Where to Buy
Available across the globe, you can have access to GAUSS no matter where you are.
Recent Tags
applications character vectors CMLMT covariance matrix dates dlibrary dllcall ECDF Editor error handling errors floating network GAUSS Engine Geometric mean graphics GUI hardware histogram hotkeys if statements installation Java API linux localization Matlab convert matlab translation matrices matrix initialization matrix manipulation Maxlik MaxLikMT Memory output pgraph graph PQG graphics RAM random numbers RedHat 6.1 simulation string functions strings threading threads loops Time Series writing dataRecent Questions
Features
Resources
Quarterly data
How can I enter quarterly data because if I type 1970-1 gauss do the subtraction, and if I type 1970.1 gauss send me an error message?
1 Answer
For dates in GAUSS you want to use what is called “Date Time” or DT format. A DT format number is simply a number in which the first 4 digits represent the year, the next 2 represent the month, the 2 after that represent the day. So 19701003 would represent January 3, 1970.
GAUSS has a function that will translate a DT number like the one above into a formatted string. It is called dttostr and can be used like this:
dt = { 19700103, 19700401 };
fmt = "YYYY-QQ";
print dttostr(dt, fmt);
This code above will output:
1970-Q1 1970-Q2
The format input (fmt in the example above) to dttostr is quite flexible and will allow you to put the different parts of the date such as year, quarter, month day in any order. You can also add any characters you would like to your output string. Here is another example:
dt = { 19700103, 19700401 };
fmt = "QQ/YYYY";
print dttostr(dt, fmt);
This code above will output:
Q1/1970 Q2/1970
If you have a string of dates similar to the output above you can convert it back to DT format with the GAUSS function strtodt. Note that support for the QQ format element is new to dttostr and strtodt in GAUSS version 13.

