Some of Roger Newson's Stata packages

These can be downloaded from two sites, namely from the the Statistical Software components (SSC) archive site and from this website. A user who wants the latest version of a package should download from SSC, if the user's version of Stata is ccompatible with the latest version of the package. The download facility on this website is mainly provided for users of superseded versions of Stata, who need to download a superseded version of the package, written in the user's Stata version, or in an earlier version.

Downloading Roger Newson's packages from SSC
Downloading Roger Newson's packages from this website
List of all versions of all Stata packages on this website

Whichever download source is used, the user may want to download the latest versions of all the packages, or at least the latest version of each package that can work on the user's version of Stata. This is because these packages are often used together, as a dialect of the Stata language. I have therefore provided do-files to describe, install and uninstall these maximal sets of package versions from each source. These do-files can be downloaded from the sections of this page corresponding to the two download sources, and then run in Stata using the run or do commands.

Downloading Roger Newson's packages from SSC
Downloading Roger Newson's packages from this website
List of all versions of all Stata packages on this website

Users who have installed the full set of packages for their versions of Stata may also write do-files to be run using the dolog package, taking advantage of this and other installed packages. I have therefore provided template (or crib) do-files for Stata versions 9 or higher. These can be downloaded from the table below.

Do-file templates for download

Do-file nameDescriptionStata versionDownload
crib12.doTemplate for semicolon-delimited do-files in Stata Version 1212Download
crcrib12.doTemplate for carriage-return-delimited do-files in Stata Version 1212Download
rtfcrib12.doTemplate for RTF document generating do-files in Stata Version 1212Download
crib11.doTemplate for semicolon-delimited do-files in Stata Version 1111Download
crcrib11.doTemplate for carriage-return-delimited do-files in Stata Version 1111Download
rtfcrib11.doTemplate for RTF document generating do-files in Stata Version 1111Download
crib10.doTemplate for semicolon-delimited do-files in Stata Version 1010Download
crcrib10.doTemplate for carriage-return-delimited do-files in Stata Version 1010Download
rtfcrib10.doTemplate for RTF document generating do-files in Stata Version 1010Download
crib9.doTemplate for semicolon-delimited do-files in Stata Version 99Download
crcrib9.doTemplate for carriage-return-delimited do-files in Stata Version 99Download

To find more about Stata statistical software, click here.

Downloading Roger Newson's packages from SSC
Downloading Roger Newson's packages from this website
List of all versions of all Stata packages on this website
Statistical Software components (SSC) archive site
Stata Corporation
Return to top of page
Return to Roger Newson's main resource page


Downloading Roger Newson's packages from SSC

I usually follow a policy of distributing my Stata programs mainly from the Statistical Software components (SSC) archive site. Users of the latest version of Stata can download my programs from there, using the ssc command in Stata. Users of earlier versions of Stata should check that a package is written in the user's Stata version, or in an earlier version, before downloading it from SSC.

To help users of the latest Stata version to download my packages from SSC, I have written 3 Stata do-files descasisay.do, instasisay.do and uninstasisay.do, which users can download from this page. descasisay.do attempts to describe the current versions, on SSC, of the packages, using the ssc describe command. instasisay.do attempts to install, on the user's site, the current versions, on SSC, of the packages, using the ssc install command, and replacing all existing versions of these packages. uninstasisay.do attempts to uninstall, on the user's site, all of my SSC packages (but does not attempt to uninstall any other SSC packages provided by other authors). The user therefore may install (and uninstall) all my packages at once, instead of installing (and uninstalling) them one by one. This option is useful, as these packages are often used together as a dialect of the Stata language.

To execute these do-files in a Stata session, download them from this page to your local folder. Then, type, in Stata,

do descasisay

to execute descasisay.do, and/or type, in Stata,

do instasisay

to execute instasisay.do, and/or type, in Stata,

do uninstasisay

to execute uninstasisay.do.

Do-files to describe, install and uninstall Stata packages from SSC

Do-file nameDescriptionStata versionDownload
descasisay.doDescribe Roger Newson's packages from SSCNoneDownload
instasisay.doInstall Roger Newson's packages from SSCNoneDownload
uninstasisay.doUninstall Roger Newson's packages from SSCNoneDownload

Return to top of page
Return to Roger Newson's main resource page


Downloading Roger Newson's packages from this website

The SSC archive is maintained by Kit Baum, who does an excellent job, and is greatly appreciated in the Stata Community for this. However, there are two main limitations of using SSC alone:

I have therefore attempted to remedy these disadvantages by having my own site, which contains a separate folder for programs written in each Stata version, and .pkg files written by myself. My own site currently contains most of my Stata packages. A few additional packages (probably obsolete in the latest version of Stata) can be found at the SSC archive site. Users are advised to access them inside Web-aware Stata, using the commands

findit package_name

or

net search package_name

or

net from http://www.imperial.ac.uk/nhli/r.newson/

if the user's version of Stata supports one of those commands.

I have provided some Stata do-files for use by users of versions of Stata from version 9 upwards, which a user can run in Stata, to describe and install, from my website, the latest version of each Stata package compatible with the version of Stata used by the user. I have also provided do-files to uninstall each of these sets of packages. All of these do-files can be downloaded from the table below.

Do-files to describe, install and uninstall Stata packages from this website

Do-file nameDescriptionStata versionDownload
descasisay_12.doDescribe packages in Stata versions up to 12NoneDownload
instasisay_12.doInstall packages in Stata versions up to 12NoneDownload
uninstasisay_12.doUninstall packages in Stata versions up to 12NoneDownload
descasisay_11.doDescribe packages in Stata versions up to 11NoneDownload
instasisay_11.doInstall packages in Stata versions up to 11NoneDownload
uninstasisay_11.doUninstall packages in Stata versions up to 11NoneDownload
descasisay_10.doDescribe packages in Stata versions up to 10NoneDownload
instasisay_10.doInstall packages in Stata versions up to 10NoneDownload
uninstasisay_10.doUninstall packages in Stata versions up to 10NoneDownload
descasisay_9.doDescribe packages in Stata versions up to 9NoneDownload
instasisay_9.doInstall packages in Stata versions up to 9NoneDownload
uninstasisay_9.doUninstall packages in Stata versions up to 9NoneDownload

However, if the user cannot download the package version using Stata, or does not want to, then s/he can download the package versions (as .zip files) from the table below. These .zip files can be unzipped into the user's personal ado folder, and should then work if the user has the same version of Stata, or a higher version. If there are multiple versions of a package, corresponding to multiple Stata versions, then the user should choose the highest available version at or below his/her own Stata version.

Return to top of page
Return to Roger Newson's main resource page


List of all versions of all Stata packages on this website

Package nameDescriptionStata versionDownload
addinbyAdd in data from a disk dataset using a foreign key11Download
addinbyAdd in data from a disk dataset using a foreign key10Download
adodevReorder ado-path for developers and other independent-minded users10Download
bmjcipFormat confidence intervals and P-values for medical journals11Download
bmjcipFormat confidence intervals and P-values for medical journals10Download
bmjcipFormat confidence intervals and P-values for medical journals9Download
bpmedianBonett-Price confidence intervals for medians and their contrasts10Download
bsplineCreate a basis of B-splines or reference splines10Download
bsplineCreate a basis of B-splines or reference splines6Download
bygapInsert a by-gap observation at the start of each by-group7Download
bynoteCreate a note with a user-specified format for use with the by option10Download
ccweightmodule to generate inverse sampling probability weights5Download
cgroupGroup contiguous observations with identical values of a varlist10Download
chardefAssign values to a characteristic of a list of variables11Download
chardefAssign values to a characteristic of a list of variables10Download
ciformmodule to format confidence interval for tables in documents7Download
creplaceExchange values cyclically between variables11Download
creplaceExchange values cyclically between variables10Download
descsaveExtension of describe creating output dataset and do-file10Download
descsaveExtension of describe creating output dataset and do-file9Download
descsaveExtension of describe creating output files8Download
descsaveExtension of describe creating output files7Download
dologExecute commands from a file, creating a log file12Download
dologExecute commands from a file, creating a log file11Download
dologExecute commands from a file, creating a log file10Download
dologExecute commands from a file, creating a log file9Download
dologExecute commands from a file, creating a log file8Download
dologExecute commands from a file, creating a log file7Download
dologExecute commands from a file, creating a log file6Download
dologxMultiple versions of dolog for executing certification scripts12Download
dologxMultiple versions of dolog for executing certification scripts11Download
dologxMultiple versions of dolog for executing certification scripts10Download
dologxMultiple versions of dolog for executing certification scripts9Download
dologxMultiple versions of dolog for executing certification scripts8Download
dotexExecute a do-file generating a SJ LaTeX log12Download
dotexExecute a do-file generating a SJ LaTeX log11Download
dotexExecute a do-file generating a SJ LaTeX log10Download
dotexExecute a do-file generating a SJ LaTeX log7Download
dsconcatConcatenate a list of Stata data files into the memory10Download
dsconcatConcatenate a list of Stata data files into the memory9Download
dsconcatConcatenate a list of Stata data files into the memory7Download
dsconcatConcatenate a list of Stata data files into the memory6Download
dsweightGenerate direct standardization weights10Download
eclplotHorizontal and vertical confidence interval plots10Download
eclplotHorizontal and vertical confidence interval plots9Download
eclplotHorizontal and vertical confidence interval plots8Download
estparmSave results from a parmest resultsset and test equality11Download
estparmSave results from a parmest resultsset and test equality10Download
expgenDuplicate observations and add generated variables10Download
expgenDuplicate observations and add generated variables9Download
expgenDuplicate observations and add generated variables6Download
explistCreating exponentially-spaced lists of numbers7Download
factextExtract factor values from a label variable created by parmest10Download
factextExtract factor values from a label variable created by parmest7Download
factmergMerge a list of factors to create string variables10Download
factmergMerge a list of factors to create string variables7Download
factrefInsert new observations with reference values for factors7Download
fvprevarVersion of fvrevar generating permanent result variables11Download
fvregenRegenerate factor variables in a parmest output dataset11Download
gphepssjTranslate a list of Stata graph files to Stata Journal .eps figures7Download
gpresetReset Stata Version 7 graphics preferences7Download
haifHomoskedastic adjustment inflation factors for model selection11Download
haifHomoskedastic adjustment inflation factors for model selection10Download
harmbyHarmonize values of variables within by-groups7Download
inccatConcatenate input files to an output file (possibly with insertions)7Download
ingapInsert gap observations in a dataset10Download
ingapInsert gap observations in a data set7Download
intextRead text files into string variables (without losing blanks)9Download
intextRead text files into string variables (without losing blanks)7Download
invciseCompute standard errors using the inverse confidence interval method10Download
keybyKey the dataset by a variable list10Download
keybyKey the dataset by a variable list9Download
lablistList value labels (if present) for one or more variables9Download
lincomestExtension to lincom saving the combination as estimation results10Download
lincomestExtension to lincom saving the combination as estimation results8Download
lincomestExtension to lincom saving the combination as estimation results7Download
listtabList variables as rows of a TeX, HTML or word processor table11Download
listtabList variables as rows of a TeX, HTML or word processor table10Download
listtexList variables as rows of a TeX, HTML or word processor table10Download
listtexList variables as rows of a TeX, HTML or word processor table9Download
listtexList variables as rows of a TeX, HTML or word processor table8Download
listtexList variables as rows of a TeX, HTML or word processor table7Download
marglmeanMarginal log means from regression models12Download
margprevMarginal prevalences from binary regression models12Download
metaparmMeta-analysis and transformations using parmest resultssets8Download
parmestCreate datasets with 1 observation per estimated parameter11Download
parmestCreate datasets with 1 observation per estimated parameter10Download
parmestCreate datasets with 1 observation per estimated parameter9Download
parmestConvert estimation results to a data set with 1 obs per parameter8Download
parmestConvert estimation results to a data set with 1 obs per parameter7Download
parmestSave estimation results as a data set with 1 obs per parameter6Download
parmestSave estimation results as a data set with 1 obs per parameter5Download
parmhetHeterogeneity tests in parmest resultssets10Download
parmparseParse a parameter name variable in a parmest resultsset11Download
pcontractMake a data set of frequencies and percentages8Download
powercalGeneralized power calculations saving results in variables7Download
prodvarsCreate product variables for two lists of input variables10Download
punafPopulation attributable fractions for cohort studies12Download
punafPopulation attributable fractions for cohort studies11Download
punafccPopulation attributable fractions for case-control and survival studies12Download
qqvalueGenerate frequentist q-values by inverting multiple-test procedures10Download
qrownameExtract lists of quoted row and column names from a matrix7Download
regaxisRegular linear and logarithmic axis scales, ranges and tick lists10Download
regaxisRegular linear and logarithmic axis scales, ranges and tick lists8Download
regparPopulation attributable risks from binary regression models12Download
rglmmodule to estimate GLMs with Huber variances5Download
rsourceRun R from inside Stata using an R source file10Download
rsourceRun R from inside Stata using an R source file9Download
rtfutilUtilities for writing Rich Text Format (RTF) files11Download
rtfutilUtilities for writing Rich Text Format (RTF) files10Download
scheme_rbn1monoMinimal monochrome graphics schemes10Download
scheme_rbn1monoMinimal monochrome graphics schemes9Download
scsomersdRank statistics for scenario comparisons10Download
sdecodeDecode a numeric variable to string, formatting unlabelled values11Download
sdecodeDecode a numeric variable to string, formatting unlabelled values10Download
sdecodeDecode a numeric variable to string, formatting unlabelled values9Download
sdecodeDecode a numeric variable to string, formatting unlabelled values7Download
sencodeEncode a string variable non-alphanumerically into a numeric variable10Download
sencodeEncode a string variable non-alphanumerically into a numeric variable9Download
sencodeEncode a string variable non-alphanumerically into a numeric variable7Download
senspecSensitivity and specificity results saved in generated variables8Download
smileplotMultiple test procedures and smile plots10Download
smileplotMultiple test procedures and smile plots8Download
smileplotMultiple test procedures and smile plots7Download
somersdKendall's tau-a, Somers' D and percentile slopes10Download
somersdKendall's tau-a, Somers' D and percentile slopes9Download
somersdKendall's tau-a, Somers' D and median differences6Download
somersdConfidence intervals for Somers' D and Kendall's tau-a5Download
stcmdRun the Stat/Transfer st command from inside Stata10Download
stcmdRun the Stat/Transfer st command from inside Stata9Download
stcmdRun the Stat/Transfer st command from inside Stata6Download
strdateReplace string date variables with numeric date variables7Download
subsaveSave a subset of the dataset in memory to a disk file9Download
textpadCall TextPad to edit a file10Download
varlabdefDefine a value label with values corresponding to variables10Download
xcollapseMake data set of summary statistics on disk or in memory10Download
xcollapseMake data set of summary statistics on disk or in memory8Download
xcontractMake dataset of frequencies and percents on disk or in memory10Download
xcontractMake data set of frequencies and percents on disk or in memory8Download
xdatelistCreate ascending numeric lists of dates10Download
xdatelistCreate ascending numeric lists of dates7Download
xglmExtended version of glm11Download
xgroupGroup the data creating a group variable and/or output dataset10Download
xrewideExtended version of reshape wide10Download
xsvmatConvert a matrix to variables in an output dataset10Download

Return to top of page
Return to Roger Newson's main resource page


Roger B. Newson
Email: r.newson@imperial.ac.uk
Text written 10 August 2011. (Packages and do-files may have been added, deleted or revised since then.)
Stata Corporation
Statistical Software components (SSC) archive site
Return to top of page
Return to Roger Newson's main resource page