Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: New version of -xsvmat- on SSC

From   "Roger B. Newson" <>
To   "" <>
Subject   st: New version of -xsvmat- on SSC
Date   Tue, 01 Oct 2013 12:06:29 +0100

Thanks one more time to Kit Baum, a new version of the -xsvmat- package is now available for download from SSC. In Stata, use the -ssc- command to do this, or -adoupdate- if you already have an old version of -xsvmat-.

The -xsvmat- package is described as below on my website, and is an extended version of -svmat-. The new version adds an option -from(matrix_expression)-, specifying an alternative source for the input matrix, which can now be an arbitrary Stata matrix expression instead of an existing Stata matrix. For instance, in the Stata -auto- data, the user may type

regress mpg weight length price foreign
xsvmat, from(r(table)') rowname(parm) names(col) rowlab(label) list(,)

and create and list a dataset similar to those produced by the SSC package -parmest-, but with variable names conforming to a style that seems to be officially approved by StataCorp. These output datasets can alternatively be saved to a disk file and/or written to the memory, overwriting the original dataset, and can then be used to produce plots and/or tables.

I would like to thank Vince Wiggins of StataCorp for some helpful advice, at the 2013 UK Stata User Meeting, on the syntax to be used for this package.

Best wishes


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

Opinions expressed are those of the author, not of the institution.

package xsvmat from

      xsvmat: Convert a matrix to variables in an output dataset

      xsvmat is an extended version of svmat.  It creates an output
      dataset (or resultsset), with one observation per row of either
      an existing matrix or the result of a matrix expression, and
      data on the values of the column entries in that row, and,
      optionally, extra variables specified by the user.  The output
      dataset created by xsvmat may be listed to the Stata log, or
      saved to a disk file, or written to the memory (overwriting any
      pre-existing dataset).

      Author: Roger Newson
      Distribution-Date: 25september2013
      Stata-Version: 10

INSTALLATION FILES                                  (click here to install)
(click here to return to the previous screen)
*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index