create_params function

Create a parameter object from a fitted model