Linear regression commonly assumes that the error terms of a model are independently and identically distributed (i.i.d) However, when datasets contain groups, the potential for correlated error terms within groups arises. In this blog, we explore how to remedy this issue with clustered error terms.
Though many standard econometric models assume that variance is constant, structural breaks in variance are well-documented, particularly in economic and finance data. If these changes are not accurately accounted for, they can hinder forecast inference measures, such as forecast variances and intervals. In this blog, we consider a tool that can be used to help locate structural breaks in variance — the iterative cumulative sum of squares algorithm(ICSS) (Inclan and Tiao, 1994).
`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.
Last week we learned how to use the `date` keyword to load dates into GAUSS. Today, we extend our analysis of time series data to plot high-frequency Forex data.
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.
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:
What does `#include` do?
What is the most common error when using `#include`?
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.
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.
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.
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.