Aptech Store

Recent Posts

Diagnosing a singular matrix

`G0121: Matrix not positive definite` and `G0048: Matrix singular` are common errors encountered during estimation. Today we will learn how to diagnose these errors using GAUSS code to compute ordinary least squares estimates, using real data from some golf shots hit by this author and recorded by a launch monitor.
Tagged in , ,

Reading dates and times in GAUSS

Time series data with inconsistently formatted dates and times can make your work frustrating. Dates and times are often stored as strings or text data and converting to a consistent, numeric format might seem like a daunting task. Fortunately, GAUSS includes an easy tool for loading and converting dates and times – the `date` keyword.

What you need to know about #include

If you have run much publicly available GAUSS code, you have probably come across the `#include` command. In this blog, we answer some important questions about #include:
  1. What does `#include` do?
  2. What is the most common error when using `#include`?
  3. How can I resolve the most common error?
Tagged in ,

Make your code portable: Data paths

In this blog, we explore data path best practices for making GAUSS code more portable and replicable. Using variables and predefined GAUSS path definitions, we show how to simplify code and easily customize data loading.
Tagged in ,

Controlling the GAUSS Autocomplete Behavior

Autocomplete is becoming a common feature in the tools we use in all aspects of our lives, because of it’s ability to help us to type more accurately and quickly. When programming in GAUSS, the autocomplete can also show you new functions you were not aware of. Today we will discuss how to use and control autocomplete features of the GAUSS editor and command window.
Tagged in , ,

Make your time series computations up to 20 times faster

The key to getting the most performance from a matrix language is to vectorize your code as much as possible. Vectorized code performs operations on large sections of matrices and vectors in a single operation, rather than looping over the elements one-by-one. In this blog, we learn how to use the GAUSS recserar function to vectorize code and simulate a time series AR(1) model.
Tagged in , , , ,

Repeating simulations from older versions of GAUSS

Starting in GAUSS version 12, a new suite of high quality and high-performance random number generators was introduced. While new projects should always use one of the modern RNG’s, it is sometimes necessary to exactly reproduce some work from the past. GAUSS has retained a set of older LCG’s, which will allow you to reproduce the random numbers from older GAUSS versions for many distributions.

The Effects of Structural Breaks on GMM models

While structural breaks are a widely examined topic in pure time series, their impacts on panel data models have garnished less attention. However, in their forthcoming paper Chowdhury and Russell (2018)] demonstrate that structural breaks can cause bias in the instrumental variable panel estimation framework. This work highlights that structural breaks shouldn’t be limited to pure time series models and warrant equal attention in panel data models.
Tagged in

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.