Skip to contents

Similar to `sample` but allows for dependencies between the picked options.

Usage

sample_with_dependency(p_set, o, dep, p_sd)

Arguments

p_set

Set of picked options

o

number of options to choose from

dep

degree of dependency between colleagues

p_sd

sd of p

Value

vector of picked slots (integer)

Details

The proportion as specified by `dep` is subtracted from the combined probability mass of the *u*npicked options and added in equal parts to the *p*icked options.

Examples

sample_with_dependency(p_set, o, dep)
#> Error in sample_with_dependency(p_set, o, dep): argument "p_sd" is missing, with no default