gen_adapt_model function

adapt_model Objects for M-steps