SMS: Nonlinear statistical modeling