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 -fvregen- on SSC

From   "Roger B. Newson" <>
To   "" <>
Subject   st: New version of -fvregen- on SSC
Date   Tue, 21 Feb 2012 11:28:23 +0000

Thanks once again to Kit Baum, a new version of the -fvregen- package is now available for download from SSC. In Stata, use the -ssc- command to do this, or -adoupdate- if the user already has an old version of -fvregen-.

The -fvergen- package is described as below on my website. The new version upgrades the -from(narname)- option to a -from(varlist)- option, allowing the user to regenerate factors from expanded specific factor varlist elements stored in multiple variables. As in

fvregen, from(parm idstr)

which extracts factors from the variables -parm- and -idstr-.

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 fvregen from

      fvregen: Regenerate factor variables in a parmest output dataset

      fvregen is intended for use in output datasets (or resultssets)
      created by the programs parmest or parmby.  These are part of the
      parmest package, which can be downloaded from SSC, and which create
      output datasets (or resultssets), with one observation per estimated
      parameter of a model fitted to an original dataset.  fvregen
      regenerates factor variables included in the model, using
      information from the parameter names.  Each regenerated factor
      variable has non-missing values in observations corresponding to
      parameters corresponding to levels of that factor, or to
      combinations of levels of that factor and other factors in products
      or interactions.  In each observation, the regenerated factors with
      non-missing values are the factors involved in the parameter
      corresponding to that observation, and their values are the values
      of the levels of these factors corresponding to that parameter.  The
      regenerated factors may have the same storage types, display
      formats, value labels, variable labels and variable characteristics
      as the factor variables of the same names in the original dataset,
      in which the model parameters were estimated.  This is made possible
      by running do-files created by the descsave package.  After the
      factors are generated, they can be listed, and/or used in confidence
      interval plots generated by the eclplot package, and/or merged to
      create a table row variable using the factmerg package.  The
      descsave, eclplot and factmerg package can all be downloaded from

      Author: Roger Newson
      Distribution-Date: 19february2012
      Stata-Version: 11

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