Skip to contents

randomise_changes_in_fct_lvls() is a Randomise function that randomly samples from data. Specifically, this function implements an algorithm to randomise changes in factor vector levels. The function is called for its side effects and does not return a value.

Usage

randomise_changes_in_fct_lvls(vector_fct, prob_unchanged_dbl)

Arguments

vector_fct

Vector (a factor vector)

prob_unchanged_dbl

Probability unchanged (a double vector)