Why does this code not work to remove X from the list? The variable is still in the list..
Code:
ds, has(type numeric)
local r(varlist) : subinstr local r(varlist) "X" "", all
foreach var of varlist `r(varlist)' {
su `var'
assert r(sd) > 0
}

Comment