Thanks as always to Kit Baum, a new version of the sdecode 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 sdecode.
The sdecode package is described as below on my website. The new version fixes a bug, which caused the maximum length of a decoded string value to be
c(maxstrvarlen) = 2045
This is now fixed, so the maximum length of a decoded string value is aa more generous and sensible value of
c(maxvlabellen) = 32000
as for decode in official Stata. See help creturn to find out more about c() values.
Best wishes
Roger
-----------------------------------------------------------------------------------
package sdecode from http://www.rogernewsonresources.org.uk/stata13
-----------------------------------------------------------------------------------
TITLE
sdecode: Decode a numeric variable to string, formatting unlabelled values
DESCRIPTION/AUTHOR(S)
sdecode ("super decode") creates an output string variable with
values from the input numeric variable varname, using labels if
present and formats otherwise. The output string variable may either
replace the input numeric variable or be generated as a new variable
named newvar. Unlike decode, sdecode creates an output string
variable containing the values of the input variable as output by the
tabulate command and other Stata output, instead of decoding all
unlabelled input values to missing. sdecode is especially useful if
a numeric variable has value labels for some values but not for
others. msdecode is a multivariate version of sdecode, which inputs
a list of numeric or string variables and (optionally) a list of
delimiters, and creates a single string variable, containing the
concatenated values of all the input variables, decoded if necessary
and separated by the delimiters if provided.
Author: Roger Newson
Distribution-Date: 19november2020
Stata-Version: 13.0
INSTALLATION FILES (click here to install)
sdecode.ado
sdecode.sthlp
msdecode.ado
msdecode.sthlp
-----------------------------------------------------------------------------------
(click here to return to the previous screen)
Related Posts with New version of sdecode on SSC
How to generate a value for groups of distinct value of a variable and then drop subgroups based on the value generated?Hi! I have a dataset including ppl's information in the group of family (each observation has a pid …
Why does indicating omitted dummy variables not work?So I run two Probit regressions with different commands, one is with i(2 3 4 5).c_lable and the othe…
Clarke Error Grid Analysis and PlotI was looking for Clarke Error Grid Plot over the internet but couldn't find how to do this in STATA…
Creating interaction terms of country and period fixed effectsDear all, I had a general question regarding the construction of interaction terms using country an…
Nested loops with macros - using required, r(100)Hi everyone, I have about twenty csv files on which I need to do some estimation after I have obtai…
Subscribe to:
Post Comments (Atom)
0 Response to New version of sdecode on SSC
Post a Comment