extract_scalar_params function

Extract scalar parameters from a fitted model