Modeling Selection Effects