Announcement

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

  • I want to use variable name in my output table

    Hi can someone help me to fix my problem. I want to use lable variable in my output table, but it keep showing the variable name
    example:
    the name my of my variable is cog but I want it to be Cognitive. But it keeps showing the cog one.
    I've already change the lable variable to Cognitive with command :
    la var cog "Cognitive"
    Last edited by Zia Thahira; 16 May 2022, 13:48.

  • #2
    what command did you use? maybe try adding the option -label-

    Comment


    • #3
      This seems backwards. If I understand this correctly, some command is showing a variable name cog and you'd rather see Cognitive. If changing the variable label doesn't work then try changing the variable name, as Cognitive is a perfectly legal variable name.

      Whether a command reports a variable name or a variable label can depend on

      1. programming caprice: perhaps the programmer just wrote the code that way (careful code sometimes shows a variable label if one exists, otherwise the variable name, but showing variable labels always will fail to inform users if there isn't one).

      2. whether there is enough space in the output to show a variable label.

      Comment

      Working...
      X