Calculate the difficulty presented by controls, given a function and parameters for that function

sample_diff(n, .func = NULL, params = NULL)

Arguments

n

Number of samples to generate.

.func

Function to use to simulate DIFF, defaults to rpert.

params

Optional parameters to pass to .func.

Value

List containing type ("diff"), samples (as a vector), and details (as a list).