Announcement

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

  • "codebook, compact" with complete names of variables?

    Hi all,
    I use STATA 17 and I do like the "codebook, compact" command to generate a log-file with informations of the dataset.
    I need the complete variablenames but I could not prevent stata to abbreviate the variablenames.

    I tried for example:

    set linesize 220
    set varabbrev off, permanently
    preserve
    log using "desc.log", replace
    novarabbrev codebook, compact
    log close
    restore

    but it produce this lines

    Variable Obs Unique Mean Min Max Label
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------
    stid 1180 1180 9.91e+07 9.91e+07 9.91e+07 ID_Nr
    bl_sex 1180 2 .5805085 0 1 Sex
    bl_age 1180 8 17.26525 14 21 Age / Years
    bl_age_det~l 1180 878 17.84245 14.09993 22.03422 exact Age / Years


    with this (underlined and bold) abbreviations.


    Thanks in advance,
    Frank

  • #2
    Unfortunately, novarabbrev does not control variable name abbreviation in the display of variables. It controls whether Stata will interpret abbreviations for variable names: in your data, whether you can use bi_s to mean the variable b1_sex.

    It is unfortunate that codebook, compact does not support a fullnames option like that of describe.

    Comment

    Working...
    X