This file is part of IDEAS, which uses RePEc data


[ Papers | Articles | Software | Books | Chapters | Authors | Institutions | JEL Classification | NEP reports | Search | New papers by email | Author registration | Rankings | Volunteers | FAQ | Blog | Help! ]

MATODD: Stata modules to produce various matrix tasks

Author info | Abstract | Publisher info | Download info | Related research | Statistics
Author Info
Nicholas J. Cox () (University of Durham)

Additional information is available for the following registered author(s):

Abstract

These matrix programs will work with either Stata 5.0 or Stata 6.0, with the exception of matdelrc, which will run only under Stata 6.0. The programs are a suite and some call others. matcfa checks that (matrix newmat = argname1 + argname2) would execute correctly: that is argname1 and argname2 name matrices with the same dimensions. If not, an error message will be issued. matcfm checks that (matrix newmat = argname1 * argname2) would execute correctly. That is, either both arguments are matrices such that the number of columns of argname1 equals the number of rows of argname2; or one of the two arguments is a scalar and the other is a matrix. If not, an error message will be issued. matchk checks that argname names an existing matrix. If not, an error message will be issued. matcname gives matrix1 the row and column names of matrix2, provided that the two matrices have the same dimensions. If not, an error message will be issued. Given a matrix, matdelrc deletes a specified row, or a specified column, or both. matdelrc requires Stata 6.0. matdelrc will not delete (i.e. annihilate) entire row vectors or entire column vectors. Given matrices A and B of the same order, matewd calculates and displays matrix C with typical element ( C[i,j] = A[i,j] / B[i,j] ) provided that no B[i,j] is equal to 0. C may overwrite A or B. A and B may be the same matrix. Given matrices A and B of the same order, matewm calculates and displays matrix C with typical element ( C[i,j] = A[i,j] * B[i,j] ) C may overwrite A or B. A and B may be the same matrix. Given matrices A and B of the same order and a user-supplied binary operator op, matewop calculates and displays matrix C with typical element ( C[i,j] = A[i,j] op B[i,j] ) provided that no C[i,j] would be missing. C may overwrite A or B. A and B may be the same matrix. Given a column_vector A and a row vector B and a user-supplied binary operator op, matgop calculates and displays the generalized outer product: matrix C with typical element ( C[i,j] = A[i,1] op B[1,j] ) provided that no C[i,j] would be missing. matmad calculates the maximum absolute deviation (MAD) between elements of matrices A and B of the same order. matmad is likely to be most useful for checking the convergence of iterative matrix calculations within programs. matmps calculates the sum of a scalar and a matrix and places it in a second matrix. For a scalar x and a matrix A, the second matrix B has typical element ( B[i,j] = x + A[i,j] ), where the order of the arguments is immaterial and matrix2 may overwrite matrix1. Given a square matrix A and power p matpow calculates and displays the pth power of A. The result is placed in a second matrix. mstdizem takes matrix_input and produces matrix_output, which is matrix_input scaled such that the row totals are given by row_total_vector and the column totals given by column_total_vector. psbayesm takes data_matrix, which should be a set of frequencies, and shrinks or smooths it towards a set of frequencies implied by prior probabilities. This will have the effect of replacing sampling zeros by positive estimates whenever the priors are positive.

Download Info
To download:

If you experience problems downloading a file, check if you have the proper application to view it first. Information about this may be contained in the File-Format links below. In case of further problems read the IDEAS help file. Note that these files are not on the IDEAS site. Please be patient as the files may be large.

File URL: http://fmwww.bc.edu/repec/bocode/m/matcfa.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matcfm.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matchk.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matcname.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matdelrc.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matewd.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matewm.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matewop.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matgop.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matmad.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matmps.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matpow.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/mstdizem.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/p/psbayesm.ado
File Format: text/plain
File Function: program code
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matcfa.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matcfm.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matchk.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matcname.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matdelrc.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matewd.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matewm.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matewop.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matgop.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matmad.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matmps.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/matpow.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/m/mstdizem.hlp
File Format: text/plain
File Function: help file
Download Restriction: no
File URL: http://fmwww.bc.edu/repec/bocode/p/psbayesm.hlp
File Format: text/plain
File Function: help file
Download Restriction: no

Publisher Info
Software component provided by Boston College Department of Economics in its series Statistical Software Components with number S366801.

Download reference. The following formats are available: HTML, plain text, BibTeX, RIS (EndNote), ReDIF
Size:
Programming language: Stata
Requires: Stata 5.0 (Stata 6.0 for matdelrc)
Date of creation: 17 Jan 1999
Date of revision: 18 Jan 2000
Handle: RePEc:boc:bocode:s367001

Note: This module may be installed from within Stata by typing "ssc install matodd". Windows users should not attempt to download these files with a web browser.
Contact details of provider:
Postal: Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA
Phone: 617-552-3670
Fax: +1-617-552-2308
Email:
Web page: http://fmwww.bc.edu/EC/
More information through EDIRC

Order Information:
Web: http://repec.org/docs/ssc.php

For technical questions regarding this item, or to correct its listing, contact: (Christopher F Baum).

Related research
Keywords: matrices iterative convergence Bayes smoothing

Statistics
Access and download statistics

Did you know? You too can volunteer for RePEc, for example by encouraging others to use our services.

This page was last updated on 2008-5-14.


This information is provided to you by IDEAS at the Department of Economics, College of Liberal Arts and Sciences, University of Connecticut using RePEc data on a server sponsored by the Society for Economic Dynamics.