Nonlinear models with measurement error: Application to vitamin D