Thanks once again to Kit Baum, a new version of the xcontract package (superseding yesterday's version) 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 xcontract.
The xcontract package is described as below on my website. The new version no longer uses file processing (except if the user specifies a saving() option). Previously, file processing was used if the zero option was specified. It has now been replaced by frame processing.
I would like to thank Jeremy Freese of Stanford University for writing the frameappend command, from which I have adapted some of the code for xcontract.
Best wishes
Roger
--------------------------------------------------------------------------------------
package xcontract from http://www.rogernewsonresources.org.uk/stata16
--------------------------------------------------------------------------------------
TITLE
xcontract: Create dataset of variable combinations with frequencies and percents
DESCRIPTION/AUTHOR(S)
xcontract is an extended version of contract. It creates an output
data set with 1 observation per combination of values of the
variables in varlist and data on the frequencies and percents of
those combinations of values in the existing data set, and,
optionally, the cumulative frequencies and percents of those
combinations. If the by() option is used, then the output data set
has one observation per combination of values of the varlist
variables per by-group, and percents are calculated within each
by-group. The output data set created by xcontract 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 data set).
Author: Roger Newson
Distribution-Date: 30december2020
Stata-Version: 16
INSTALLATION FILES (click here to install)
xcontract.ado
xcontract.sthlp
--------------------------------------------------------------------------------------
(click here to return to the previous screen)
Related Posts with New version of xcontract )AGAIN) on SSC
Moving 12 - 1 cumulative returnHey all, I am trying to replica a momentum trading strategy for which I'm building portfolios based…
Problems with generating group identifierDear all, I'm having a problem with making a variable that identifies a group. I have a data set wi…
Draw figure like this?Dear All, I have this dataset Code: * Example generated by -dataex-. To install: ssc install dataex…
Comparing means from 6 different samples.Dear All, I have 6 different data sets. Say, my variable of interest is y and I want to test if the…
has problem with : recode with more than one if conditionDear All, I have two variables V1 and V2 . V2 has the option (1= Control , 2= CBE, 3=Government) …
Subscribe to:
Post Comments (Atom)
0 Response to New version of xcontract )AGAIN) on SSC
Post a Comment