Hi Everyone
I am trying tabulate the frequency and percentage for the values 1 and 2. I dont want to include the missing values NA in the tabulation and want to also label 1 as "home" and 2 as "away". I would appreciate help on how to code it, thank you!
---------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
I am trying tabulate the frequency and percentage for the values 1 and 2. I dont want to include the missing values NA in the tabulation and want to also label 1 as "home" and 2 as "away". I would appreciate help on how to code it, thank you!
---------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str2 Q01 "1" "1" "NA" "1" "1" "1" "NA" "1" "1" "NA" "NA" "1" "1" "1" "1" "1" "1" "1" "1" "1" "1" "1" "1" "1" "1" "1" "NA" "1" "1" "NA" "1" "NA" "1" "NA" "1" "1" "1" "NA" "1" "NA" "2" "2" "2" "2" "1" "NA" "2" end

Comment