English, Article edition: MATODD: Stata modules to produce various matrix tasks Nicholas J. Cox

User activity

Share to:
 
Bookmark: http://trove.nla.gov.au/version/174507
Physical Description
  • code
Language
  • English

Edition details

Title
  • MATODD: Stata modules to produce various matrix tasks
Author
  • Nicholas J. Cox
Physical Description
  • code
Notes
  • 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.
  • matrices, iterative convergence, Bayes smoothing
  • RePEc:boc:bocode:s367001
Language
  • English
Contributed by
OAIster

Get this edition

Other links

  • Set up My libraries

    How do I set up "My libraries"?

    In order to set up a list of libraries that you have access to, you must first login or sign up. Then set up a personal list of libraries from your profile page by clicking on your user name at the top right of any screen.

  • All (1)
  • Unknown (1)
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.
None of your libraries hold this item.

User activity


e.g. test cricket, Perth (WA), "Parkes, Henry"

Separate different tags with a comma. To include a comma in your tag, surround the tag with double quotes.

Be the first to add a tag for this edition

Be the first to add this to a list

Comments and reviews

What are comments? Add a comment

No user comments or reviews for this version

Add a comment