Thanks as always to Kit Baum, new versions of the packages descsave and xcollapse are now available for download from SSC. In Stata, use the ssc command to do this, or adoupdate if you already have old versions of these packages.
The packages descsave and xcollapse are described as below on my website. The new versions remove some mostly harmless but possibly confusing messages to the user.
Best wishes
Roger
------------------------------------------------------------------------------------------------
package descsave from http://www.rogernewsonresources.org.uk/stata16
------------------------------------------------------------------------------------------------
TITLE
descsave: Save descriptive attributes of variables to a do-file and/or a Stata dataset
DESCRIPTION/AUTHOR(S)
descsave is an extended version of describe, which lists descriptive
attributes for a list of variables in a dataset given by varlist, or for all
variables in the dataset if varlist is not specified. The dataset is the
current dataset in memory, unless using is used to specify a dataset in a
file. The descriptive attributes are variable names, storage types, display
formats, value labels and variable labels (as output by describe), and also
(optionally) a list of characteristics specified by the charlist() option.
descsave creates an output Stata dataset (or resultsset) with one observation
per variable and data on these descriptive attributes. This dataset may be
listed using the list() option and/or saved to a data frame using the frame()
option and/or saved to a file using the saving() option and/or written to the
memory using the norestore or fast option, overwriting any existing dataset.
The file specified by dofile() is a do-file, containing commands which can be
run to reconstruct the descriptive attributes of the variables, assuming that
variables of the same names have been created and are numeric or character as
appropriate. descsave can be used together with export delimited to create a
definitive generic spreadsheet version of the current dataset, together with
a Stata do-file to reconstruct the descriptive attributes of the variables
after the spreadsheet has been input using import delimited.
Author: Roger Newson
Date: 19 May 2023
Stata version: 16
INSTALLATION FILES (click here to install)
descsave.ado
descsave.sthlp
------------------------------------------------------------------------------------------------
(click here to return to the previous screen)
------------------------------------------------------------------------------------------------
package xcollapse from http://www.rogernewsonresources.org.uk/stata16
------------------------------------------------------------------------------------------------
TITLE
xcollapse: Make data set of summary statistics on disk or in memory
DESCRIPTION/AUTHOR(S)
xcollapse is an extended version of collapse. It creates an output
dataset of means, sums, medians, and other summary statistics. This
output dataset may be listed to the Stata log, or saved to a data frame,
or saved to a disk file, or written to the memory (overwriting any
pre-existing dataset).
Author: Roger Newson
Distribution-Date: 19may2023
Stata-Version: 16
INSTALLATION FILES (click here to install)
xcollapse.ado
xcollapse.sthlp
------------------------------------------------------------------------------------------------
(click here to return to the previous screen)
The packages descsave and xcollapse are described as below on my website. The new versions remove some mostly harmless but possibly confusing messages to the user.
Best wishes
Roger
------------------------------------------------------------------------------------------------
package descsave from http://www.rogernewsonresources.org.uk/stata16
------------------------------------------------------------------------------------------------
TITLE
descsave: Save descriptive attributes of variables to a do-file and/or a Stata dataset
DESCRIPTION/AUTHOR(S)
descsave is an extended version of describe, which lists descriptive
attributes for a list of variables in a dataset given by varlist, or for all
variables in the dataset if varlist is not specified. The dataset is the
current dataset in memory, unless using is used to specify a dataset in a
file. The descriptive attributes are variable names, storage types, display
formats, value labels and variable labels (as output by describe), and also
(optionally) a list of characteristics specified by the charlist() option.
descsave creates an output Stata dataset (or resultsset) with one observation
per variable and data on these descriptive attributes. This dataset may be
listed using the list() option and/or saved to a data frame using the frame()
option and/or saved to a file using the saving() option and/or written to the
memory using the norestore or fast option, overwriting any existing dataset.
The file specified by dofile() is a do-file, containing commands which can be
run to reconstruct the descriptive attributes of the variables, assuming that
variables of the same names have been created and are numeric or character as
appropriate. descsave can be used together with export delimited to create a
definitive generic spreadsheet version of the current dataset, together with
a Stata do-file to reconstruct the descriptive attributes of the variables
after the spreadsheet has been input using import delimited.
Author: Roger Newson
Date: 19 May 2023
Stata version: 16
INSTALLATION FILES (click here to install)
descsave.ado
descsave.sthlp
------------------------------------------------------------------------------------------------
(click here to return to the previous screen)
------------------------------------------------------------------------------------------------
package xcollapse from http://www.rogernewsonresources.org.uk/stata16
------------------------------------------------------------------------------------------------
TITLE
xcollapse: Make data set of summary statistics on disk or in memory
DESCRIPTION/AUTHOR(S)
xcollapse is an extended version of collapse. It creates an output
dataset of means, sums, medians, and other summary statistics. This
output dataset may be listed to the Stata log, or saved to a data frame,
or saved to a disk file, or written to the memory (overwriting any
pre-existing dataset).
Author: Roger Newson
Distribution-Date: 19may2023
Stata-Version: 16
INSTALLATION FILES (click here to install)
xcollapse.ado
xcollapse.sthlp
------------------------------------------------------------------------------------------------
(click here to return to the previous screen)
Comment