Announcement

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

  • variable __000001 contains all missing values

    Hi all,

    I have run into a problem that I have never run into before while using the table1 command.

    I am making a baseline table comparing men with RAVI's above and below 32 and baseline characteristics. Here is code I used:

    table1, by (RAVI32_male) vars(Age conts \ Female_sex bin \ Total_history_AF conts \ HF_totaal bin \ HFrEF bin \ HFpEF bin \ HT_new1 bin \ rv_dm bin \ Coronary_artery_disease bin \ ///
    Embolism_new bin \ TIA bin \ rv_peripheral_vascular bin \)

    I am not sure where the problem lies as if I shorten to code as much as possible keeping to even two variables, I run into the same problem:

    "variable __000001 contains all missing values"

    I am not sure if this is referring to the first variable RAVI32_male. This variable is binary and only contains males. So in my data I also have females however, under RAVI32_male, there are only males. So it is either:
    - 0 = males and RAVI <32
    - 1 = Males with RAVI >32
    - "-" = Females.


    Any help is appreciated!

    Thank you

  • #2
    That's a temporary variable created as a result of running table. It's not one of your existing variables. Someone else may have seen this before.

    Comment


    • #3
      I don't understand what you mean by temporary variable. It is one of my variables seen in "data editor". I could not find an earlier thread adressing this issue

      Comment


      • #4
        A temporary variable is a variable created within a Stata program -- because the programmer asks for it -- and, all being well, it will disappear when that program finishes. That is what "temporary" means. Temporary variables have names that start with __ (double underscore).

        This is a case where all is not well, and the error message says as much without explaining why. I can't add more.

        If you don't get a better answer, take this up with StataCorp technical support citing your licensing information and supplying enough of your dataset to reproduce the problem.

        Comment

        Working...
        X