Modeling with rational functions