ref_grid function

Create a reference grid from a fitted model