model function

Estimate models for vital data