= Stata Keep = The '''`keep`''' command is used to subset cases or variables. See also the [[Stata/Drop|drop]] command. <> ---- == Usage == === Variables === {{{ keep foo bar baz }}} Note that the variables kept are not re-ordered. See the [[Stata/Order|order]] command for that functionality. === Cases === {{{ keep if foo==1 keep in 1/10 }}} ---- CategoryRicottone