I am trying to remove observations that contain several words, but I recieved a message about "invalid syntax". Can you please advise where the mistake is? I also tried dataex to list the observations but I recieved the following message: "data width (999 chars) exceeds max linesize. Try specifying fewer variables"
The code I am trying currently is the following:
The code I am trying currently is the following:
Code:
local wordlist "refines" "enhances" "flourishes" "matures" "expands" "grows"
gen newvar = 1
foreach w in wordlist' {
replace newvar = 0 if subinstr(lower_KeyDevelopmentSituation, "`w'") != 0
}
drop if newvar == 0

Comment