Calculates permutation threshold for null model, where a specified model is run over multiple bootstrap resamples of multiple permuted version of the dataset.
a dataframe containing an outcome variable to be permuted
the outcome to be permuted as a string (i.e. "y")
the number of times to be permuted per repeat
the number of times to repeat each set of permutations
The quantile of null stabilities to use as a threshold.