Announcement

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

  • how to prevent truncation of longer variable names

    I'm running some simple linear regressions using Stata's regress function.

    One table looks like this:

    Click image for larger version

Name:	2024-01-17_215911.jpg
Views:	1
Size:	17.2 KB
ID:	1740211



    The very next table looks like this

    Click image for larger version

Name:	2024-01-17_215943.jpg
Views:	1
Size:	23.6 KB
ID:	1740212




    How can I ensure that in every table output displays the full variable recode_CVDBALANCE_W77?

    Thank You.

  • #2
    The handles for tuning display of results are documented under help regress, noting the link to display options. I don't see one for this.

    Simply, why not just revise the variable name? It does not look good for making public.

    Comment


    • #3
      Originally posted by Nick Cox View Post
      The handles for tuning display of results are documented under help regress, noting the link to display options. I don't see one for this.

      Simply, why not just revise the variable name? It does not look good for making public.
      Thank you. I agree, I'll have to probably shorten the names. It's just that I'm one of those people who likes their variable names to be as descriptive as possible.

      Comment


      • #4
        recode_ tells me only that you may have started with something else.

        Comment


        • #5
          Originally posted by Nick Cox View Post
          recode_ tells me only that you may have started with something else.
          Yes, I reordered the order of levels in the original variable name.

          Question for you: would you happen to know a suitable length I can keep a variable name so STATA will never truncate it further? I.e., how many characters? Thanks.

          Comment


          • #6
            I don't know off the top of my head. Never is a strong word! Back in the day variable names were I think limited to 8 characters, so I guess that should work everywhere.

            Comment


            • #7
              Originally posted by Nick Cox View Post
              I don't know off the top of my head. Never is a strong word! Back in the day variable names were I think limited to 8 characters, so I guess that should work everywhere.
              I agree, that should be reasonable enough. Thank you very much for your help with this.

              Comment

              Working...
              X