Announcement

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

  • Length of the names of variable in Test

    Hey Everybody
    Hope somebody can help me with this simple question. As you can see I am very new at STATA

    I made this paired t test. It shortens duration bottle to durati^e and duration breast to durati^t. How can I make it write the full tekst under variable:

    Please explain so a beginner can actually understand it :-)
    Tnx


  • #2

    Comment


    • #3
      Welcome to Statalist!

      While some Stata commands have an option to expand the number of characters displayed in variable names before they are abbreviated, reading the documentation for the ttest command does not show such an option. It appears that your only option for avoiding the abbreviation of the variable names is to rename the variables to have names of 8 characters or less.

      Comment


      • #4
        Thanks a lot for the answer. I might have to rename :-)

        Comment


        • #5
          Ahmed:
          you may also want to use short variable names but then -label- variables with (reasonably) larger description, like in the following toy-example:
          Code:
          . set obs 1
          obs was 0, now 1
          
          . g dur_bott=runiform()
          
          . label var dur_bott "duration bottle"
          
          . tab dur_bott
          
             duration |
               bottle |      Freq.     Percent        Cum.
          ------------+-----------------------------------
             .1369841 |          1      100.00      100.00
          ------------+-----------------------------------
                Total |          1      100.00
          Kind regards,
          Carlo
          (Stata 18.0 SE)

          Comment

          Working...
          X