Thanks yet again 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, and was also presented at the 2020 UK Stata User Meeting (online). The new version now drops unused value labels imported from the lframe() frame and not previously present in the current frame.
Best wishes
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: 20november2020
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)
Related Posts with New version of invdesc on SSC
stataWhich stata command do we run to get the very first time a certain patient showed up for a clinic vi…
"Scaled RSS evaluates to missing" problemDear Stata users, I am running nlsur command to regress a system of 2 equations to exercise the Mis…
Smarter way toWhile learning probit, mprobit, logit, mlogit, ivprobit, and cmp like Code: mprobit Y X I realize…
Help with Threshold regression for Multiple Threshold VariablesHansen's (2000, pp. 587) setting only allows one threshold and one threshold variable. Subsequently,…
How should we recalibrate weighting of the pooled dataset?I want to pool two datasets to obtain a nationally representative data, each study had study-specifi…
Subscribe to:
Post Comments (Atom)
0 Response to New version of invdesc on SSC
Post a Comment