Get relevant parameters from distribution

.get_distribution_parms(distribution, f)

Arguments

distribution

list. probability distribution specified in list format e.g. list(name = "gamma", shape = 2, scale = 4). The distribution list must contain a 'name' element, this element must be a string and correspond to one of the types of distributions supported in the Distributions package. distribution must also contain parameters for the specified distribution, in the form 'parameter_name=parameter_value'.

f

distribution function from stats package.

Value

list containing elements of distribution that overlap with arguments of f