Announcement

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

  • Error command La not defined by La.ado

    Hello,
    I have a file, that keeps giving me error:

    .gen ur=.
    (1,741 missing values generated)

    replace ur= 1 if inlist(boma, 14)
    (1 real change made)

    replace ur= 2 if inlist(boma, 15)
    (1 real change made)

    la def ur 1 "Urban" 2 "Rural"

    La val ur ur
    command La not defined by La.ado
    r(199);

    I was thinking it was with my Stata, but it works in other Stata datasets.

    Any idea how to solve this?

    Many thanks!

  • #2
    write "label values". or "la val"
    Not "La val".

    Stata commands are case-sensitive.

    Comment


    • #3
      Many many thanks Fernando! dumb me

      It worked now!

      Comment

      Working...
      X