Hi. I have three string variables with observations that are empty cells/missing across all three. I want to delete only observations that are empty across all three of the variables. I've tried two versions of the code (below), both of which don't work: 1) dropping observations that have missing entries across all three variables; 2) replacing the missing/blank with a "." value.
Any help would be much appreciated
Code:
1) bysort id: drop if varA == " " & varB == " " & varC == " " 2) local X "varA varB varC" foreach x of local X { replace `x'=. if missing(x) }
Comment