Announcement

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

  • Truncated variable labels and string variables

    I am using Stata 14.

    1- When I carry out tabulations, variables with long value labels are truncated even though I perform format operation. How do I avoid that?
    2. When I import data into stata from excel, SPSS, etc, the string length of my variables are truncated. How do avoid this.
    Any help would be appreciated.

  • #2
    Dear abucamara.

    I'm not aware of a way to perform a tabulation that allows more than about 30 characters of your value (or value label). When faced with this problem, sometimes I do the following:

    Code:
    sysuse auto
    preserve
    bysort make: gen count=_N
    duplicates drop make, force
    list make count
    restore
    Please provide more details on how you are importing data. Stata doesn't naturally import SPSS files, so you must be using a user-written program or another software package. Long strings shouldn't be truncated when importing in Stata 14, but it depends on what method you are using.

    Regards,
    Joe

    Comment


    • #3
      "abucamara" may perhaps take a look at this recent thread (http://www.statalist.org/forums/foru...-limit-rensfix). It has comments on SPSS-imported files and long strings.Best, Marcos.
      Best regards,

      Marcos

      Comment

      Working...
      X