Thanks as always to KIt Baum, a new version of the invdesc 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 invdesc..

The invdesc package is described as below on my website. The new version fixes a few bugs, and conforms to the standard Stata practice of allowing value labels to override the existing default format.

Best wshes

Roger


---------------------------------------------------------------------------------
package invdesc from http://www.rogernewsonresources.org.uk/stata16
---------------------------------------------------------------------------------

TITLE
invdesc: Change variable attributes using a describe or descsave resultsset

DESCRIPTION/AUTHOR(S)
invdesc inputs a data frame containing descriptive data in a
describe or descsave output dataset or resultsset), and
(optionally) another (or the same) data frame, containing value
labels. It uses information in the variables in the descriptive
resultsset to change the attributes of variables in the dataset in
the current data frame in memory. These attributes can be
variable mode (string or numeric), storage type, format, value
label, variable label, or variable characteristics. The
descriptive resultsset can be created using describe or descsave,
or can be created manually using a spreadsheet (generic or
proprietary), and can contain extra variables and/or exclude
variables usually present, in which case the corresponding
variable attributes are not modified. sinvdesc is a version of
invdesc which attempts to find the descriptives in the current
data frame. The descsave package can be downloaded from SSC using
the ssc command.

Author: Roger Newson
Date: 15 May 2020
Stata version: 16

INSTALLATION FILES (click here to install)
invdesc.ado
invdesc.sthlp
sinvdesc.ado
sinvdesc.sthlp

ANCILLARY FILES (click here to get)
descriptive.txt
valuelabel.txt
xauto.txt
---------------------------------------------------------------------------------
(click here to return to the previous screen)