# Excluding respondents in models

**URL:** <https://forum.surveyengine.com/t/excluding-respondents-in-models/63>\
**Category:** Experiments\
**Tags:** modelling\
**Created:** [13 February 2023 18:15 UTC](https://forum.surveyengine.com/t/excluding-respondents-in-models/63 "2023-02-13T18:15:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freddo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.surveyengine.com/freddo/32/55_2.png) [@Freddo](https://forum.surveyengine.com/u/Freddo)\
**Post date:** [13 February 2023 18:15 UTC](https://forum.surveyengine.com/t/excluding-respondents-in-models/63/1 "2023-02-13T18:15:04Z")

</div>

Can I exclude certain respondents using “create model”?

---

<div class="post-metadata">

**Author:** ![benno](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.surveyengine.com/benno/32/3_2.png) [@benno](https://forum.surveyengine.com/u/benno)\
**Post date:** [13 February 2023 23:01 UTC](https://forum.surveyengine.com/t/excluding-respondents-in-models/63/2 "2023-02-13T23:01:49Z")

</div>

When creatin the model - choose ‘custom expression’ from the segment dropdown.  
Then define a ‘garbage’ segment to include the bad IDs  
e.g.  
`if ($RID == '123' || $RID =='234') { return 'garbage'} else { return 'valid'}`
