Panel Data#
Size#
Returns an indicator of whether all groups in a panel dataset covers the maximum time span. |
|
Returns an indicator of whether all groups in a panel dataset covers consecutive time periods. |
|
Returns an indicator of whether each group in a panel dataset covers the maximum time span. |
|
Returns an indicator of whether each group in a panel dataset covers consecutive time periods. |
|
Returns the number of groups, number of time observations for each group, an indicator of strong balance. |
|
Returns the start date and end date of each requested variable. |
Tranformation#
Aggregates the data in the columns of a matrix or dataframe based upon a column containing group ids with a choice of method. |
|
Converts a GAUSS dataframe in long panel format to wide panel format. |
|
Converts a GAUSS dataframe in wide panel format to long panel format. |
|
Computes time series differences of panel data. |
|
Computes time series lags of panel data. |
|
Replaces specified values of a matrix, array or string array. |
|
Replaces values of a matrix or array within specified ranges. |
Merging and Sorting#
Vertically concatenates (or stacks) two dataframes. |
|
Performs a left, or full, outer join on two matrices based upon user-specified key columns. |
|
Inserts one or more new columns into a matrix or dataframe at a specified location. |
|
Joins two matrices, or dataframes based upon user-specified key columns, with non-matching rows removed. |
|
Sorts panel data based on automatically detected group and date variable. |
|
Sorts a matrix on multiple columns. |
|
Returns elements from |
Duplicate observations#
Drops duplicate observations from data. |
|
Identifies duplicate observations and prints report. |
|
Checks if all observations in the matrix or dataframe are unique. |
|
Returns a binary vector with a one for every row that is unique, otherwise a zero. |
Summary Statistics#
Tabulation#
Missing values#
Returns true if the argument contains an infinity, NaN, or missing value. |
|
Returns 1 if matrix has any missing values, 0 otherwise. |
|
Creates a scalar missing value, or converts (or replaces) specified elements in a matrix to GAUSS’s missing value code. |
|
Converts numeric values to the missing value code according to the values given in a logical expression. |
|
Controls the symbol printed to represent missing values. |
|
Deletes the rows of a matrix that contain any missing values. |
|
Returns 1 if the input is a scalar missing value. |
Searching#
Indicates whether elements in a matrix fall between a specified lower and upper bound. |
|
Indicates whether one matrix, multidimensional array or string array contains any elements from another symbol. |
|
Returns number of elements of a vector falling in specified ranges. |
|
Returns weighted count of elements of a vector falling in specified ranges. |
|
Returns indices of elements falling within a specified range. |
|
Checks one numeric vector against another and returns the indices of the elements of the first vector in the second vector. |
|
Checks whether a symbol is an empty matrix. |
|
Checks whether each element of a matrix or string array matches any element from a separate symbol. |
|
Returns row number of largest element in each column of a matrix. |
|
Returns row number of smallest element in each column of a matrix. |
|
Checks whether any element in the row of a matrix or string array matches any element from a separate symbol. |
String and categorical variables#
Returns the unique set of column labels and corresponding key values for a categorical variable. |
|
Replaces the labels in a categorical variable of a dataframe. |
|
Changes the order of the labels in a categorical variable of a dataframe. |
|
Sets a specified category to be the base case for a categorical variable. |
These functions can be used to fix errors in categorical labels.
Replaces a substring within a categorical label or string element. |
|
Converts a string or categorical variable of a dataframe to a numeric variable. |
|
Strips all white space characters from the left and right side of each element in a categorical variable or string array. |
|
Strips all white space characters from the left side of each element in a categorical variable or string array. |
|
Strips all white space characters from the right side of each element in a categorical variable or string array. |