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
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
Comment