Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • New versions of sdecode, bmjcip and factmerg on SSC

    Thanks yet again to Kit Baum, new versions of the packages sdecode, bmjcip, and factmerg are now available for download from SSC. In Stata, use the ssc command to do this, or adoupdate if you already have old versions of these packages.

    The packages sdecode, bmjcip, and factmerg are described as below on my website. The new versions add the option/suboption esub(mdsuper), specifying that e-formatted non-label values will be converted to have Markdown superscripts. The packages bmjcip, and factmerg now fail informatively if the user has not installed sdecode (which they require), explaining how the user can install sdecode from SSC.

    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: 21july2022
    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)

    --------------------------------------------------------------------------------------
    package bmjcip from http://www.rogernewsonresources.org.uk/stata11
    --------------------------------------------------------------------------------------

    TITLE
    bmjcip: Format confidence intervals and P-values for medical journals

    DESCRIPTION/AUTHOR(S)
    bmjcip reformats a list of numeric variables, containing estimates
    and/or confidence limits and/or P-values, to string variables,
    containing the same values formatted for presentation in medical
    journals. The new string variables replace the old numeric
    variables, and have the same names, variable labels, variable
    characteristics, and positions in the dataset. bmjcip is usually
    used in output datasets (or resultssets) produced by the parmest
    package, and the reformatted string variables are usually later
    output using the listtab package, for input to Microsoft Word or
    other word processors. It requires the sdecode package in order to
    work. The sdecode, parmest and listtab packages can all be
    downloaded from SSC.

    Author: Roger Newson
    Distribution-Date: 21july2022
    Stata-Version: 11

    INSTALLATION FILES (click here to install)
    bmjcip.ado
    bmjcip.sthlp
    --------------------------------------------------------------------------------------
    (click here to return to the previous screen)


    --------------------------------------------------------------------------------------
    package factmerg from http://www.rogernewsonresources.org.uk/stata11
    --------------------------------------------------------------------------------------

    TITLE
    factmerg: Merge a list of factors to create string variables

    DESCRIPTION/AUTHOR(S)
    factmerg takes, as input, a list of variables (numeric or string),
    representing discrete factors. It creates, as output, one to three
    string variables, containing, in each observation, a value, a factor
    name or a factor variable label, respectively, copied from the first
    factor variable in the input variable list with a non-missing value
    for that observation. factmerg requires the SSC package sdecode in
    order to work.

    Author: Roger Newson
    Distribution-Date: 21july2022
    Stata-Version: 11

    INSTALLATION FILES (click here to install)
    factmerg.ado
    factmerg.sthlp
    --------------------------------------------------------------------------------------
    (click here to return to the previous screen)

Working...
X