Return model coefs from function