Risk-neutral Modeling with Affine and Nonaffine Models