Converts a parameter vector to a named list suitable for do.call(), matching parameter names to function formals.

prepare_args_list(par, fn)

Arguments

par

Parameter vector (named or unnamed)

fn

The distribution function to match against

Value

Named list of parameters