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
TestCode Test Code: xtreg ff.logny02a i.phase1##i.regulated i.phase2##i.regulated c.logfixedassets i.n…
Interpretation of Negative Binomial Regression Model with Panel DataDear All, I am using Stata 14 and investigating the impact of Corporate Venture Capital Investment …
Basic Regression Analysis HelpHello all, I'm new to regression analysis in general. I've read all the rules so I hope you can all…
Marginal effects after fixed effect logistic regressionI was trying to run fixed effects logit with stata's Code: clogit. Now, trying to figure out the ma…
QREGPD post estimation and graphsTo the developers of QREGPD and others, I am estimating the impact of institutional integrity on ca…
Subscribe to:
Post Comments (Atom)
0 Response to New version of sdecode on SSC
Post a Comment