update_formula_and_data function

Update data and formula for fitting cglmm model