Thanks yet again to Kit Baum, a new version of the xcontract package (superseding last year's versions) 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 has a few improvements to the internal code, including evaluating the weights in double precision and compressing the resulting frequencies, percents, cumulative frequencies and cumulative percents as far as is possible without unavoidable loss of precision.
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: 31december2020
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 (YET AGAIN) on SSC
Save the residuals from a regression with industry and year fixed effectsDear Stata Users, I am trying to estimate a model with industry and year fixed effects with standar…
Metan/forest plot - multiple pooled analysis within 1 forest plotHi all, I want to present the results of some subgroup analysis. There are two potential effect mod…
Garch(1,1) model does not converge:*flat log likelihood encountered, cannot find uphill directionHello, I am using 5 minute Bitcoin/USD logreturns since 2017 (n=256,705) and am trying to estimate …
jm suite for joint analysis of longitudinal and survival dataDear Statalist, I want to do a Cox regression taking repeated measurements into account. I want to …
Full example of using SEM estimates as regression coefficients (CFA)Hello, I am trying to construct indices for well being, stress and environmental concern. I am usin…
Subscribe to:
Post Comments (Atom)
0 Response to New version of xcontract (YET AGAIN) on SSC
Post a Comment