[Return to Master Index]
------- various utility functions -----------
accumulate - accumulates column elements of a matrix
blockdiag - creates a block diagonal matrix
cal - associates observation #'s with calendar
ccorr1 - converts matrix to correlation form
ccorr2 - converts matrix to correlation form
cols - returns # of columns of a matrix
crlag - circular lag used by sacf,spacf
cumprodc - returns cumulative product of each column of a matrix
cumsumc - returns cumulative sum of each column of a matrix
delif - select matrix values for which a condition is false
findnear - finds matrix element nearest a scalar value
fturns - finds turning points in a time-series
growthr - converts a matrix to annual % growth rates
ical - ical is inverse of cal, finds obs # given cal-structure for dates
indexcat - extract indices equal to a scalar or an interval
indicator - converts levels to indicator variables
invccorr - coverts coefficients from correlation form
invpd - makes a matrix positive-definite, then inverts
lag - generates a vector or matrix of lags
levels - generates a factor levels variable vector
lprint - prints a matrix in LaTeX table format
lprintf - enhanced version of lprint
matadd - adds non-conforming matrices, row or col compatible.
matdiv - divides non-conforming matrices, row or col compatible.
matmul - multiplies non-conforming matrices, row or col compatible.
matsub - divides non-conforming matrices, row or col compatible.
mlag - generates a matrix of n lags from a matrix
mode - tries to find the mode of a distribution
mprint - prints a matrix
mprint3 - prints matrices of coefficients and t-statisics
mth2qtr - converts monthly to quarterly time series
nclag - generates a matrix of non-contiguous lags
plt - plots results structures (wrapper function)
prodc - returns product of each column of a matrix
prt - prints results structures (wrapper function)
rows - returns # of rows of a matrix
sacf - sample autocorrelation coefficients
sdiff - creates a matrix of seasonally differenced variables
sdummy - creates a matrix of seasonal dummy variables
selif - select matrix values for which a condition is true
seqa - a sequence of numbers with a beginning and increment
shist - plots spline-smoothed histogram
spacf - sample partial autocorrelation coefficients
stdc - std deviations of columns returned as a column vector
sumc - returns sum of each column
tally - counts frequencies of unique levels
tdiff - time-series differences of a matrix
trimc - trims columns of a matrix (or vector) like Gauss
trimr - trims rows of a matrix (or vector) like Gauss
tsdate - time-series dates function
tsprint - print time-series data
vec - creates a vector by stacking matrix columns
vech - creates a vector by stacking lower triangular matrix columns
xdiagonal - spreads x(nxk) out to X(n*n x n*k)
yvector - repeats y(nx1) to form Y(n*n x 1)
-------- demonstration programs -------------
cal_d - demonstrates cal function
ical_d - demonstrates ical function
lprint_d - demonstrates lprint function
lprintf_d - demonstrates lprintf function
mprint_d - demonstrates mprint function
mprint3_d - demonstrates mprint3 function
sacf_d - demonstrates sacf
spacf_d - demonstrates spacf
tsdate_d - demonstrates tsdate function
tsprint_d - demonstrates tsprint function
util_d - demonstrated some of the utility functions
------- functions to mimic analogous Gauss functions -----------
rows - returns the # of rows in a matrix or vector
cols - returns the # of cols in a matrix or vector
invpd - test for PD matrix, then inverts
cumprodc - cumulative product of columns
cumsumc - cumulative sum of columns
prodc - product of columns
sumc - sum of columns
delif - select values when condition is false
selif - select values when condition is true
indexcat - extract indices for scalar or interval
seqa - a number sequence
stdc - std deviation of cols
matdiv - divide non-conformable matrices
matmul - multiply non-conformable matrices
matadd - add non-conformable matrices
matsub - subtract non-conformable matrices
trimr - trims rows of a matrix (or vector) like Gauss
trimc - trims columns of a matrix (or vector) like Gauss