Announcement

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

  • appending two dataset (variable label lost in the using dataset)

    dataset 1:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input float(CCRmeta x x1)
    677.3721 1 1
    1173.0568 2 2
    end
    label values x1 df
    label def df 1 "gr1", modify
    label def df 2 "gr2", modify
    [/CODE]

    dataset 2:
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input float(CCRmeta x x1)
    2831.791 7 7
    2266.1501 8 8
    end
    label values x1 df
    label def df 7 "gr1", modify
    label def df 8 "gr2", modify
    [/CODE]
    ------------

    In the above two datasets the value label for 1 is gr1 and for 2 is gr2 in the first dataset.In the second dataset the value label is gr1 for 7 and gr2 for 8. I want to append the two datasets and still retain the value labels as they are.My problem is that if I append the two dataset is like value label for 7 and 8 (using dataset) is dropped. below is what I get from appending the two datasets.
    * Example generated by -dataex-. For more info, type help dataex
    clear
    input float(CCRmeta x x1)
    677.3721 1 1
    1173.0568 2 2
    2831.791 7 7
    2266.1501 8 8
    end
    label values x1 df
    label def df 1 "gr1", modify
    label def df 2 "gr2", modify
    [/CODE]

    Kindly help

  • #2
    Any help please

    Comment


    • #3
      Originally posted by Fredrick orwa View Post
      I want to append the two datasets and still retain the value labels as they are.
      Why? Seriously, having different numeric values mapped to the same strings is a recipe for running into problems.

      Comment

      Working...
      X