Announcement

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

  • rename : If the variable name is too long, ???

    I want to generate 'log wage' , so

    gen ln_wage=log(wage)

    but Stata display 'invalid name'

    because variable name is too long !!!


    What can i do???

    I don't want to shorten variable name.



  • #2
    Something else is going on. I can create that variable without problem

    Code:
    . sysuse nlsw88, clear
    (NLSW, 1988 extract)
    
    .
    . gen ln_wage=log(wage)
    
    .
    So what commands did you give before creating that variable? How did you gave those commands? What version of Stata are you using?
    ---------------------------------
    Maarten L. Buis
    University of Konstanz
    Department of history and sociology
    box 40
    78457 Konstanz
    Germany
    http://www.maartenbuis.nl
    ---------------------------------

    Comment

    Working...
    X