Text this: Sufficient dimension reduction on partially nonlinear index models with applications to medical costs analysis.