Select nonzero elements in predict stratified case